|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ModuleFactoryInstance.java This interface is designed to provide a means of storing loaded modules and their associated identifiers. It also allows configuration of the module. This is instance is called from the ModuleFactory which simply relays the requests here. Created: Tue May 9 13:53:20 2000
Method Summary | |
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 identifier)
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 abstractIdentifer,
ModuleIdentifier concreteIdentifier)
Set the concrete identifier for a given abstract identifier. |
void |
setConfig(ModuleIdentifier identifier,
Object config)
Sets the config to a particular module described by an identifier. |
Method Detail |
public boolean isModuleAvailable(ModuleIdentifier identifier)
identifier
- the module identifier
public Module getModule(ModuleIdentifier identifier) throws ModuleException
identifier
- the module identifier
ModuleException
public ModuleList getRequiredModules(ModuleIdentifier identifier)
identifier
- the module identifier of the module of interest
public void setConfig(ModuleIdentifier identifier, Object config)
identifier
- the identifierconfig
- the configpublic Object getConfig(ModuleIdentifier identifier)
public void setConcreteIdentifier(ModuleIdentifier abstractIdentifer, ModuleIdentifier concreteIdentifier)
public void addIdentifier(ModuleIdentifier identifier)
identifier
- the identifierpublic void addIdentifier(ModuleIdentifier[] identifiers)
identifiers
- an array of identifierspublic ModuleIdentifier resolveModuleName(String moduleName)
moduleName
- the name of the modulepublic ModuleIdentifier resolveClassName(String className)
public Module load(ModuleIdentifier identifier) throws ModuleException
identifier
- the identifier
ModuleException
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |