|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.server.deployment.support.AbstractModule
public abstract class AbstractModule
Jar file module
Field Summary | |
---|---|
protected ClassLoader |
classLoader
Module's class loader |
protected Set<Module> |
dependOnThis
List of modules depending on this module |
protected Set<Module> |
dependsOn
List of modules this module depends on |
protected ModuleId |
moduleId
Module's name |
protected URL |
originalUrl
Location it was originally expected on |
protected int |
state
State |
protected URL |
workingUrl
Real location |
Fields inherited from interface org.abstracthorizon.extend.server.deployment.Module |
---|
CREATED, DEFINED, STARTED, UNDEFINED, WAITING_ON_CREATE, WAITING_ON_CREATE_TO_START, WAITING_ON_START |
Constructor Summary | |
---|---|
protected |
AbstractModule()
Caution - use with care as every module must have module id defined! |
|
AbstractModule(ModuleId moduleId)
Constructor |
Method Summary | |
---|---|
void |
create()
Creates the module. |
protected void |
createClassLoader()
This method creates the class loader. |
void |
destroy()
Destroys the module. |
boolean |
equals(Object o)
Compares two modules and returns true if names are the same |
ClassLoader |
getClassLoader()
Returns module's classloader |
Set<Module> |
getDependOnThis()
Returns a set of modules that depend on this |
Set<Module> |
getDependsOn()
Returns a set of modules this module depends on |
ModuleId |
getModuleId()
Returns module's module id |
URL |
getOriginalLocation()
Returns original location |
int |
getState()
Returns state |
URL |
getWorkingLocation()
Returns real location |
void |
setLocation(URL url)
Sets the location |
void |
setModuleId(ModuleId moduleId)
Sets module's module id |
void |
setState(int state)
Changes the state |
void |
start()
This method does nothing |
void |
stop()
This method does nothing |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ClassLoader classLoader
protected Set<Module> dependsOn
protected Set<Module> dependOnThis
protected URL workingUrl
protected URL originalUrl
protected ModuleId moduleId
protected int state
Constructor Detail |
---|
protected AbstractModule()
public AbstractModule(ModuleId moduleId)
moduleId
- module idMethod Detail |
---|
public void setLocation(URL url)
url
- url of the modulepublic void create()
create
in interface Module
public void start()
start
in interface Module
public void stop()
stop
in interface Module
public void destroy()
destroy
in interface Module
public ClassLoader getClassLoader()
getClassLoader
in interface Module
public Set<Module> getDependOnThis()
getDependOnThis
in interface Module
public Set<Module> getDependsOn()
getDependsOn
in interface Module
public ModuleId getModuleId()
getModuleId
in interface Module
public void setModuleId(ModuleId moduleId)
moduleId
- module idpublic URL getOriginalLocation()
getOriginalLocation
in interface Module
public URL getWorkingLocation()
getWorkingLocation
in interface Module
public int getState()
getState
in interface Module
public void setState(int state)
setState
in interface Module
state
- stateprotected void createClassLoader()
public boolean equals(Object o)
true
if names are the same
equals
in class Object
o
- other object
true
if names are the samepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |