|
Hilbert II - Version 0.03.04 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.qedeq.kernel.bo.load.DefaultModuleFactory
This class provides access methods for loading QEDEQ modules.
| Constructor Summary | |
DefaultModuleFactory(Kernel kernel)
Constructor. |
|
| Method Summary | |
void |
autoReloadLastSessionChecked()
If configured load all QEDEQ modules that where successfully loaded the last time. |
void |
clearLocalBuffer()
Clear local file buffer and all loaded QEDEQ modules. |
String[] |
getAllLoadedModules()
Get list of all currently loaded QEDEQ modules. |
String |
getBufferDirectory()
Get buffer directory for QEDEQ module files. |
String |
getGenerationDirectory()
Get directory for generated files. |
String |
getLocalName(ModuleAddress moduleAddress)
Transform an URL address into a local file path where the QEDEQ module is buffered. |
ModuleProperties |
getModuleProperties(String address)
Get ModuleProperties for an address. |
void |
init()
Initialisation of ModuleFactory. |
boolean |
loadAllModulesFromQedeq()
Load all QEDEQ modules from project web directory for current kernel. |
QedeqBo |
loadModule(ModuleAddress moduleAddress)
Get a certain module. |
QedeqBo |
loadModule(QedeqBo module,
Specification spec)
Load a certain module. |
QedeqBo |
loadModule(String address)
Get a certain module. |
boolean |
loadPreviouslySuccessfullyLoadedModules()
Load all previously checked QEDEQ modules. |
void |
removeAllModules()
Remove all modules from memory. |
void |
removeModuleAndDependents(ModuleProperties prop)
Remove a QEDEQ module from memory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultModuleFactory(Kernel kernel)
kernel - For kernel access.| Method Detail |
public final void init()
ModuleFactoryKernel
directly after switching into ready state. Calling this method in ready state is not
supported.
TODO mime 20070411: what about an appropriate closing method?
init in interface ModuleFactorypublic final void autoReloadLastSessionChecked()
public final void removeAllModules()
ModuleFactory
removeAllModules in interface ModuleFactorypublic final void removeModuleAndDependents(ModuleProperties prop)
prop - Remove module identified by this property.
public final void clearLocalBuffer()
throws IOException
clearLocalBuffer in interface ModuleFactoryIOException - Deletion of all buffered file was not successful.
public final QedeqBo loadModule(String address)
throws XmlFileExceptionList
loadModule in interface ModuleFactoryaddress - Address of module.
XmlFileExceptionList - Module could not be successfully loaded.
public final QedeqBo loadModule(ModuleAddress moduleAddress)
throws XmlFileExceptionList
ModuleFactory
loadModule in interface ModuleFactorymoduleAddress - Address of module.
XmlFileExceptionList - Module could not be successfully loaded.
public final QedeqBo loadModule(QedeqBo module,
Specification spec)
throws XmlFileExceptionList
ModuleFactory
loadModule in interface ModuleFactorymodule - this is the current module.spec - specification of wanted module.
XmlFileExceptionList - Module could not be successfully loaded.public final String[] getAllLoadedModules()
ModuleFactory
getAllLoadedModules in interface ModuleFactorypublic final boolean loadPreviouslySuccessfullyLoadedModules()
public final boolean loadAllModulesFromQedeq()
ModuleFactory
loadAllModulesFromQedeq in interface ModuleFactorypublic final String getLocalName(ModuleAddress moduleAddress)
moduleAddress - Get local address for this QEDEQ module address.
address.public final String getBufferDirectory()
ModuleFactory
getBufferDirectory in interface ModuleFactorypublic final String getGenerationDirectory()
ModuleFactory
getGenerationDirectory in interface ModuleFactorypublic final ModuleProperties getModuleProperties(String address)
ModuleFactoryModuleProperties for an address.
getModuleProperties in interface ModuleFactoryaddress - Look for this address.
ModuleProperties, if address is maleformed
null is returned.
|
Hilbert II - Version 0.03.04 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ©left GNU General Public Licence All Rights Reserved. |