|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.module.Module
Module.java Represents a module, the main constituent of a modular architectured program. It is associated with the module identifier and context classes. Created: Wed Apr 19 14:17:05 2000
Constructor Summary | |
Module()
|
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
destroy()
The method called, from an external source, to remove this module and prepare it for garbage collection. |
void |
finalize()
|
protected void |
firePropertyChange(PropertyChangeEvent event)
|
protected void |
firePropertyChange(String propertyName,
int oldValue,
int newValue)
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
|
ModuleContext |
getContext()
Returns the modules context. |
ModuleIdentifier |
getIdentifier()
Returns a module identifier for this module. |
ModuleIdentifierList |
getRequiredIdentifiers()
Returns the module identifiers for the required modules. |
Module |
getRequiredModule(ModuleIdentifier ident)
|
ModuleList |
getRequiredModules()
Returns the required modules for this module (ie: the modules that are necessary in order for this module to function). |
abstract String |
getVersion()
Returns the version of this module. |
boolean |
hasListeners(String propertyName)
|
boolean |
isDestroyed()
|
boolean |
isStarted()
Returns whether the module has been started (ie: the start method run). |
void |
load()
The method called for the load of this module. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
runStart()
|
void |
setContext(ModuleContext context)
|
void |
start()
The method called externally to initiate the modules function. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Module()
Method Detail |
public ModuleIdentifier getIdentifier()
public ModuleList getRequiredModules()
public Module getRequiredModule(ModuleIdentifier ident)
public ModuleIdentifierList getRequiredIdentifiers()
public final ModuleContext getContext()
public final void setContext(ModuleContext context)
public abstract String getVersion()
public void load() throws ModuleException
ModuleLoadException
- if a loading error occurs
ModuleException
public void start()
public void runStart()
public final boolean isStarted()
public boolean isDestroyed()
public void destroy()
public void finalize() throws Throwable
finalize
in class Object
Throwable
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
protected void firePropertyChange(String propertyName, int oldValue, int newValue)
protected void firePropertyChange(PropertyChangeEvent event)
public boolean hasListeners(String propertyName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |