public interface IModuleLifeCycleHandler
Modifier and Type | Method and Description |
---|---|
void |
configurationChanged(java.lang.String pName,
java.lang.String oldValue,
java.lang.String newValue)
Called when a module parameter value has changed.
|
boolean |
select()
Called when the mdac is selected, which corresponds to the user action
"Deploy a mdac...".
|
boolean |
start()
Called when the mdac is started.
|
void |
stop()
Called before the mdac is stopped.
|
void |
unselect()
Called when the mdac is deselected from the project.
|
void |
upgrade(Version oldVersion,
java.util.Map<java.lang.String,java.lang.String> oldParameters)
Called when the mdac is being upgraded from a previous version.
|
boolean select() throws ModuleException
ModuleException
- when an error occurs preventing the module from being
selected.boolean start() throws ModuleException
ModuleException
- when an error occurs preventing the module from starting.void stop() throws ModuleException
ModuleException
- when an error occurs preventing the module from stopping.void unselect() throws ModuleException
ModuleException
- when an error occurs preventing the module from being
unselected.void upgrade(Version oldVersion, java.util.Map<java.lang.String,java.lang.String> oldParameters) throws ModuleException
oldVersion
- The previous version of the MDAColdParameters
- The previous list of parameters (key, value)ModuleException
- when an error occurs preventing the module from being
upgraded.void configurationChanged(java.lang.String pName, java.lang.String oldValue, java.lang.String newValue)
pName
- The name of the parameter whose value changed.oldValue
- The previous value of the parameter value. Can be null
.newValue
- The new value of the parameter value. Can be null
.