|
org.openide.modules 6.5.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.modules.ModuleInfo
public abstract class ModuleInfo
General information about a module. Immutable from an API perspective, serves as a source of information only. All instances may be gotten via lookup. It is forbidden for module code to register instances of this class.
Field Summary | |
---|---|
static String |
PROP_ENABLED
Property name fired when enabled or disabled. |
Constructor Summary | |
---|---|
protected |
ModuleInfo()
Do-nothing constructor. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Add a change listener. |
protected void |
firePropertyChange(String prop,
Object old,
Object nue)
Indicate that something changed, as a subclass. |
abstract Object |
getAttribute(String attr)
Get some attribute, for example OpenIDE-Module-Name. |
String |
getBuildVersion()
The indentification of the build version. |
ClassLoader |
getClassLoader()
Get a class loader associated with this module that can load classes defined in the module. |
abstract String |
getCodeName()
The full code name, with release version after slash if defined. |
abstract String |
getCodeNameBase()
The code name of the module, sans release version. |
abstract int |
getCodeNameRelease()
The release version (-1 if undefined). |
abstract Set |
getDependencies()
Get a list of all dependencies this module has. |
String |
getDisplayName()
Get a localized display name, if available. |
String |
getImplementationVersion()
The implementation version, or null. |
abstract Object |
getLocalizedAttribute(String attr)
Get an attribute with localization. |
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(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(PropertyChangeListener l)
Remove a change listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_ENABLED
Constructor Detail |
---|
protected ModuleInfo()
Method Detail |
---|
public abstract String getCodeNameBase()
public abstract int getCodeNameRelease()
public abstract String getCodeName()
public String getDisplayName()
public abstract SpecificationVersion getSpecificationVersion()
public String getImplementationVersion()
public String getBuildVersion()
getImplementationVersion()
.
public abstract boolean isEnabled()
public abstract Object getAttribute(String attr)
public abstract Object getLocalizedAttribute(String attr)
public final void addPropertyChangeListener(PropertyChangeListener l)
public final void removePropertyChangeListener(PropertyChangeListener l)
protected final void firePropertyChange(String prop, Object old, Object nue)
public abstract Set getDependencies()
public abstract boolean owns(Class clazz)
false
.
public ClassLoader getClassLoader() throws 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.
IllegalArgumentException
- if this module is disabledpublic String[] getProvides()
|
org.openide.modules 6.5.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |