org.abstracthorizon.extend.server.dynamic.secondstage
Class Bootstrap.BootstrapModule

java.lang.Object
  extended by org.abstracthorizon.extend.server.dynamic.secondstage.Bootstrap.BootstrapModule
All Implemented Interfaces:
Module
Enclosing class:
Bootstrap

public static class Bootstrap.BootstrapModule
extends Object
implements Module


Field Summary
protected  ClassLoader classLoader
           
protected  HashSet<Module> dependOnThis
           
protected  HashSet<Module> dependsOn
           
protected  ModuleId moduleId
           
 
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
Bootstrap.BootstrapModule(ModuleId moduleId, ClassLoader classLoader)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classLoader

protected ClassLoader classLoader

dependOnThis

protected HashSet<Module> dependOnThis

dependsOn

protected HashSet<Module> dependsOn

moduleId

protected ModuleId moduleId
Constructor Detail

Bootstrap.BootstrapModule

public Bootstrap.BootstrapModule(ModuleId moduleId,
                                 ClassLoader classLoader)
Method Detail

create

public void create()
Description copied from interface: Module
Creates the module.

Note: Not to be called directly. Use DeploymentManager.create(Module) method instead.

Specified by:
create in interface Module

destroy

public void destroy()
Description copied from interface: Module
Destroys the module.

Note: Not to be called directly. Use DeploymentManager.destroy(Module) method instead.

Specified by:
destroy in interface Module

getClassLoader

public ClassLoader getClassLoader()
Description copied from interface: Module
Returns modules class loader.

Specified by:
getClassLoader in interface Module
Returns:
modules class loader or null

getDependOnThis

public Set<Module> getDependOnThis()
Description copied from interface: Module
Returns a set of modules that depend on this module.

Specified by:
getDependOnThis in interface Module
Returns:
a set of modules that depend on this module

getDependsOn

public Set<Module> getDependsOn()
Description copied from interface: Module
Returns a set of modules this module depends on.

Specified by:
getDependsOn in interface Module
Returns:
a set of modules this module depends on

getModuleId

public ModuleId getModuleId()
Description copied from interface: Module
Return's module's name. This must not be null.

Specified by:
getModuleId in interface Module
Returns:
module's name

getOriginalLocation

public URL getOriginalLocation()
Description copied from interface: Module
Returns module's original location.

Specified by:
getOriginalLocation in interface Module
Returns:
module's original location

getState

public int getState()
Description copied from interface: Module
Returns module's state

Specified by:
getState in interface Module
Returns:
module's state

getWorkingLocation

public URL getWorkingLocation()
Description copied from interface: Module
Returns module's working location

Specified by:
getWorkingLocation in interface Module
Returns:
module's working location

setState

public void setState(int state)
Description copied from interface: Module
Sets the moduile's state.

Note: Not to be called directly!

Specified by:
setState in interface Module
Parameters:
state - module's state

start

public void start()
Description copied from interface: Module
Starts the module.

Note: Not to be called directly. Use DeploymentManager.start(Module) method instead.

Specified by:
start in interface Module

stop

public void stop()
Description copied from interface: Module
Stops the module.

Note: Not to be called directly. Use DeploymentManager.stop(Module) method instead.

Specified by:
stop in interface Module


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.