|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.man.bioinf.module.NullModuleFactory
NullModuleFactory.java This class does precisely nothing, but in a very special way..... Created: Mon May 15 15:03:40 2000
Constructor Summary | |
NullModuleFactory()
|
Method Summary | |
void |
addConfig(ModuleIdentifier identifier,
Object config)
|
void |
addIdentifier(ModuleIdentifier identifier)
Adds an identifier to the factory storage mechanism. |
void |
addIdentifier(ModuleIdentifier[] identifiers)
Adds identifiers to the factory storage mechanism. |
void |
destroy()
Destroy all of the module instances, and remove all the internal data structures of this Factory. |
Object |
getConfig(ModuleIdentifier mod)
Returns the config object a given module |
Module |
getModule(ModuleIdentifier identifier)
Returns the module, given the module identifier. |
ModuleList |
getRequiredModules(ModuleIdentifier identifier)
Returns the modules required by the given module. |
boolean |
isModuleAvailable(ModuleIdentifier identifier)
Returns whether a module is available for use. |
Module |
load(ModuleIdentifier identifier)
Loads the module associated with a particular identifier. |
ModuleIdentifier |
resolveClassName(String className)
Resolves a classname of a module into the module identifier. |
ModuleIdentifier |
resolveModuleName(String moduleName)
Resolve a module name into a ModuleIdentifier |
void |
setConcreteIdentifier(ModuleIdentifier abstractIdentifier,
ModuleIdentifier concreteIdentifier)
Set the concrete identifier for a given abstract identifier. |
void |
setConfig(ModuleIdentifier mod,
Object config)
Sets the config to a particular module described by an identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullModuleFactory()
Method Detail |
public boolean isModuleAvailable(ModuleIdentifier identifier)
ModuleFactoryInstance
isModuleAvailable
in interface ModuleFactoryInstance
identifier
- the module identifier
public Module getModule(ModuleIdentifier identifier)
ModuleFactoryInstance
getModule
in interface ModuleFactoryInstance
identifier
- the module identifier
public ModuleList getRequiredModules(ModuleIdentifier identifier)
ModuleFactoryInstance
getRequiredModules
in interface ModuleFactoryInstance
identifier
- the module identifier of the module of interest
public void addIdentifier(ModuleIdentifier identifier)
ModuleFactoryInstance
addIdentifier
in interface ModuleFactoryInstance
identifier
- the identifierpublic void addIdentifier(ModuleIdentifier[] identifiers)
ModuleFactoryInstance
addIdentifier
in interface ModuleFactoryInstance
identifiers
- an array of identifierspublic void addConfig(ModuleIdentifier identifier, Object config)
public Module load(ModuleIdentifier identifier)
ModuleFactoryInstance
load
in interface ModuleFactoryInstance
identifier
- the identifierpublic void setConfig(ModuleIdentifier mod, Object config)
ModuleFactoryInstance
setConfig
in interface ModuleFactoryInstance
mod
- the identifierconfig
- the configpublic Object getConfig(ModuleIdentifier mod)
ModuleFactoryInstance
getConfig
in interface ModuleFactoryInstance
public ModuleIdentifier resolveModuleName(String moduleName)
ModuleFactoryInstance
resolveModuleName
in interface ModuleFactoryInstance
moduleName
- the name of the modulepublic ModuleIdentifier resolveClassName(String className)
ModuleFactoryInstance
resolveClassName
in interface ModuleFactoryInstance
public void destroy()
ModuleFactoryInstance
destroy
in interface ModuleFactoryInstance
public void setConcreteIdentifier(ModuleIdentifier abstractIdentifier, ModuleIdentifier concreteIdentifier)
ModuleFactoryInstance
setConcreteIdentifier
in interface ModuleFactoryInstance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |