|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Module
This interface describes a module that can be loaded and deployed.
Field Summary | |
---|---|
static int |
CREATED
Created module |
static int |
DEFINED
Module that is defined (loaded) |
static int |
STARTED
Deployed module |
static int |
UNDEFINED
Undefined module |
static int |
WAITING_ON_CREATE
Module that waits of dependencies to be created |
static int |
WAITING_ON_CREATE_TO_START
Module that waits of dependencies to be created |
static int |
WAITING_ON_START
Waiting on modules this module depends to start |
Method Summary | |
---|---|
void |
create()
Creates the module. |
void |
destroy()
Destroys the module. |
ClassLoader |
getClassLoader()
Returns modules class loader. |
Set<Module> |
getDependOnThis()
Returns a set of modules that depend on this module. |
Set<Module> |
getDependsOn()
Returns a set of modules this module depends on. |
ModuleId |
getModuleId()
Return's module's name. |
URL |
getOriginalLocation()
Returns module's original location. |
int |
getState()
Returns module's state |
URL |
getWorkingLocation()
Returns module's working location |
void |
setState(int state)
Sets the moduile's state. |
void |
start()
Starts the module. |
void |
stop()
Stops the module. |
Field Detail |
---|
static final int UNDEFINED
static final int DEFINED
static final int WAITING_ON_CREATE
static final int WAITING_ON_CREATE_TO_START
static final int CREATED
static final int WAITING_ON_START
static final int STARTED
Method Detail |
---|
URL getOriginalLocation()
URL getWorkingLocation()
ClassLoader getClassLoader()
null
Set<Module> getDependOnThis()
Set<Module> getDependsOn()
void setState(int state)
Note: Not to be called directly!
state
- module's stateint getState()
ModuleId getModuleId()
void create()
Note: Not to be called directly. Use DeploymentManager.create(Module)
method instead.
void start()
Note: Not to be called directly. Use DeploymentManager.start(Module)
method instead.
void stop()
Note: Not to be called directly. Use DeploymentManager.stop(Module)
method instead.
void destroy()
Note: Not to be called directly. Use DeploymentManager.destroy(Module)
method instead.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |