public abstract class ModuleInfo
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PROP_ENABLED |
Property name fired when enabled or disabled.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
ModuleInfo() |
Do-nothing constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
Add a change listener.
|
protected void |
firePropertyChange(java.lang.String prop,
java.lang.Object old,
java.lang.Object nue) |
Indicate that something changed, as a subclass.
|
abstract java.lang.Object |
getAttribute(java.lang.String attr) |
Get some attribute, for example OpenIDE-Module-Name.
|
java.lang.String |
getBuildVersion() |
The identification of the build version.
|
java.lang.ClassLoader |
getClassLoader() |
Get a class loader associated with this module that can load
classes defined in the module.
|
abstract java.lang.String |
getCodeName() |
The full code name, with release version after slash if defined.
|
abstract java.lang.String |
getCodeNameBase() |
The code name of the module, sans release version.
|
abstract int |
getCodeNameRelease() |
The release version (-1 if undefined).
|
abstract java.util.Set<Dependency> |
getDependencies() |
Get a list of all dependencies this module has.
|
java.lang.String |
getDisplayName() |
Get a localized display name, if available.
|
java.lang.String |
getImplementationVersion() |
The implementation version, or null.
|
abstract java.lang.Object |
getLocalizedAttribute(java.lang.String attr) |
Get an attribute with localization.
|
java.lang.String[] |
getProvides() |
Get a set of capabilities which this module provides to others that may
require it.
|
abstract SpecificationVersion |
getSpecificationVersion() |
The specification version, or null.
|
abstract boolean |
isEnabled() |
Whether the module is currently enabled.
|
abstract boolean |
owns(java.lang.Class<?> clazz) |
Determine if the provided class
was loaded as a part of this module, and thus will only be
loadable later if this module is enabled.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
Remove a change listener.
|
public static final java.lang.String PROP_ENABLED
public abstract java.lang.String getCodeNameBase()
public abstract int getCodeNameRelease()
public abstract java.lang.String getCodeName()
public java.lang.String getDisplayName()
public abstract SpecificationVersion getSpecificationVersion()
public java.lang.String getImplementationVersion()
public java.lang.String getBuildVersion()
getImplementationVersion().public abstract boolean isEnabled()
public abstract java.lang.Object getAttribute(java.lang.String attr)
public abstract java.lang.Object getLocalizedAttribute(java.lang.String attr)
public final void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public final void removePropertyChangeListener(java.beans.PropertyChangeListener l)
protected final void firePropertyChange(java.lang.String prop,
java.lang.Object old,
java.lang.Object nue)
public abstract java.util.Set<Dependency> getDependencies()
public abstract boolean owns(java.lang.Class<?> clazz)
false.Modules.ownerOf(java.lang.Class<?>)public java.lang.ClassLoader getClassLoader()
throws java.lang.IllegalArgumentException
You can only call this method on an enabled module, and the result may change if the module is disabled and reënabled.
The class loader may or may not be shared with any other module, or be the application's startup class loader, etc.
For reasons of backward compatibility, this method is not abstract
but will throw UnsupportedOperationException if not
overridden. The instances obtainable from default lookup will
override the method to return a real value.
java.lang.IllegalArgumentException - if this module is disabledpublic java.lang.String[] getProvides()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.