org.abstracthorizon.extend.server.deployment
Interface DeploymentManager

All Superinterfaces:
ModuleLoader
All Known Implementing Classes:
Bootstrap.DeploymentManagerStub, Bootstrap.DeploymentManagerStub, DeploymentManagerImpl

public interface DeploymentManager
extends ModuleLoader

This interface defines behaviour of main deployment manager. It handles module loaders and deployment cycle of modules.

Author:
Daniel Sendula

Field Summary
static String DEPLOYMENT_MANAGER_DEFAULT_NAME
          Default name DeploymentManager can be found in a context
 
Method Summary
 void create(Module module)
          Calls Module.create() method.
 void deploy(ModuleId moduleId, Module module)
          Deploys given module.
 void destroy(Module module)
          Calls Module.destroy() method.
 EnhancedMap<ModuleId,Module> getDeployedModules()
          Returns map of deployed modules.
 Set<ModuleLoader> getModuleLoaders()
          Returns set of module loaders
 Module loadAndDeploy(URI uri)
          This method loads module and deploys it before returning it to the caller.
 void redeploy(Module module)
          Re-deploys given module.
 void setModuleLoaders(Set<ModuleLoader> moduleLoaders)
          Sets module loaders
 void start(Module module)
          Calls Module.start() method.
 void stop(Module module)
          Calls Module.stop() method.
 void undeploy(Module module)
          Undeploys given module.
 
Methods inherited from interface org.abstracthorizon.extend.server.deployment.ModuleLoader
canLoad, load, loadAs, toModuleId
 

Field Detail

DEPLOYMENT_MANAGER_DEFAULT_NAME

static final String DEPLOYMENT_MANAGER_DEFAULT_NAME
Default name DeploymentManager can be found in a context

See Also:
Constant Field Values
Method Detail

deploy

void deploy(ModuleId moduleId,
            Module module)
Deploys given module.

Parameters:
module - module

undeploy

void undeploy(Module module)
Undeploys given module.

Parameters:
module - module

redeploy

void redeploy(Module module)
Re-deploys given module.

Parameters:
module - module

create

void create(Module module)
Calls Module.create() method.

Parameters:
module - module whose create method is to be called

start

void start(Module module)
Calls Module.start() method.

Parameters:
module - module whose start method is to be called

stop

void stop(Module module)
Calls Module.stop() method.

Parameters:
module - module whose stop method is to be called

destroy

void destroy(Module module)
Calls Module.destroy() method.

Parameters:
module - module whose destroy method is to be called

loadAndDeploy

Module loadAndDeploy(URI uri)
This method loads module and deploys it before returning it to the caller.

Parameters:
uri - uri of the module as it is going to be passed to ModuleLoader.load(URI) method and #deploy(URI, Module) method
Returns:
loaded module or null if module cannot be loaded TODO check return statement

getDeployedModules

EnhancedMap<ModuleId,Module> getDeployedModules()
Returns map of deployed modules.

Returns:
map of deployed modules

getModuleLoaders

Set<ModuleLoader> getModuleLoaders()
Returns set of module loaders

Returns:
module loaders

setModuleLoaders

void setModuleLoaders(Set<ModuleLoader> moduleLoaders)
Sets module loaders

Parameters:
moduleLoaders - module loaders


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