|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 id| Method Detail |
|---|
public void setLocation(URL url)
url - url of the modulepublic void create()
create in interface Modulepublic void start()
start in interface Modulepublic void stop()
stop in interface Modulepublic void destroy()
destroy in interface Modulepublic ClassLoader getClassLoader()
getClassLoader in interface Modulepublic Set<Module> getDependOnThis()
getDependOnThis in interface Modulepublic Set<Module> getDependsOn()
getDependsOn in interface Modulepublic ModuleId getModuleId()
getModuleId in interface Modulepublic void setModuleId(ModuleId moduleId)
moduleId - module idpublic URL getOriginalLocation()
getOriginalLocation in interface Modulepublic URL getWorkingLocation()
getWorkingLocation in interface Modulepublic int getState()
getState in interface Modulepublic void setState(int state)
setState in interface Modulestate - stateprotected void createClassLoader()
public boolean equals(Object o)
true if names are the same
equals in class Objecto - 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 | |||||||||