|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.state.AbstractState org.jtheque.core.managers.module.ModuleConfiguration
public final class ModuleConfiguration
A module configuration.
Constructor Summary | |
---|---|
ModuleConfiguration()
Construct a new ModuleConfiguration. |
Method Summary | |
---|---|
void |
add(InstallationResult result)
Add the result of an installation to the module configuration. |
void |
add(ModuleContainer module)
Add a module container to the configuration. |
void |
add(ModuleContainer module,
ModuleState state)
Add a module to the configuration. |
boolean |
containsFile(java.lang.String filePath)
Indicate if the configuration contains a file or not. |
void |
delegateLoad(java.util.List<NodeState> nodes)
Delegate the load. |
java.util.List<NodeState> |
delegateSave()
Delegate the save. |
ModuleState |
getState(java.lang.String moduleName)
Return the state of the module. |
boolean |
isDelegated()
Indicate if the write and read operations are delegated to the state or are standard managed by the statemanager. |
void |
remove(ModuleContainer module)
Remove the module. |
void |
setState(java.lang.String moduleName,
ModuleState state)
Set the state of the module. |
Methods inherited from class org.jtheque.core.managers.state.AbstractState |
---|
getProperties, getProperty, getProperty, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleConfiguration()
Method Detail |
---|
public boolean isDelegated()
IState
isDelegated
in interface IState
isDelegated
in class AbstractState
public void delegateLoad(java.util.List<NodeState> nodes)
IState
delegateLoad
in interface IState
delegateLoad
in class AbstractState
nodes
- The noads of the state.public java.util.List<NodeState> delegateSave()
IState
delegateSave
in interface IState
delegateSave
in class AbstractState
public ModuleState getState(java.lang.String moduleName)
moduleName
- The name of the module.
public void setState(java.lang.String moduleName, ModuleState state)
moduleName
- The name of the module.state
- The state.public boolean containsFile(java.lang.String filePath)
filePath
- The path to the file.
public void remove(ModuleContainer module)
module
- The module to remove.public void add(ModuleContainer module)
module
- The module container to add.public void add(ModuleContainer module, ModuleState state)
module
- The module to add.state
- The state of the module.public void add(InstallationResult result)
result
- The installation result.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |