org.abstracthorizon.extend.server.deployment.service
Class AbstractServiceModuleLoader

java.lang.Object
  extended by org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
All Implemented Interfaces:
ModuleLoader
Direct Known Subclasses:
BulkDeploy, JarModuleLoader, MavenRepoModuleLoader, SpringAbstractServiceModuleLoader

public abstract class AbstractServiceModuleLoader
extends Object
implements ModuleLoader

Service module loader. It loads "service.xml" file as spring's application context xml configuration file. TODO: explain donwloading and unpacking of archives

Author:
Daniel Sendula

Field Summary
protected  DeploymentManager deploymentManager
          Deployment manager
protected  Set<String> extensions
          Set of extensions loader will work on
 
Constructor Summary
AbstractServiceModuleLoader()
          Empty constructor
 
Method Summary
 boolean canLoad(URI uri)
          Returns true if module loader knows how to load (create) module from given URI.
 DeploymentManager getDeploymentManager()
          Returns deployment manager
 Set<String> getExtensions()
          Returns set of extensions this module will work with.
 void setDeploymentManager(DeploymentManager deploymentManager)
          Sets deployment manager
 void setExtensions(Set<String> extensions)
          Sets set of extensions this module will work with.
 void start()
          Adds this loader to "DeploymentManager" DeploymentManager.
 void stop()
          Removes this loader from "DeploymentManager" DeploymentManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.abstracthorizon.extend.server.deployment.ModuleLoader
load, loadAs, toModuleId
 

Field Detail

extensions

protected Set<String> extensions
Set of extensions loader will work on


deploymentManager

protected DeploymentManager deploymentManager
Deployment manager

Constructor Detail

AbstractServiceModuleLoader

public AbstractServiceModuleLoader()
Empty constructor

Method Detail

setDeploymentManager

public void setDeploymentManager(DeploymentManager deploymentManager)
Sets deployment manager

Parameters:
deploymentManager - deployment manager

getDeploymentManager

public DeploymentManager getDeploymentManager()
Returns deployment manager

Returns:
deployment manager

canLoad

public boolean canLoad(URI uri)
Returns true if module loader knows how to load (create) module from given URI.

Specified by:
canLoad in interface ModuleLoader
Parameters:
uri - URI
Returns:
true if module loader knows how to load (create) module from given URI.

getExtensions

public Set<String> getExtensions()
Returns set of extensions this module will work with.

Returns:
set of extensions this module will work with

setExtensions

public void setExtensions(Set<String> extensions)
Sets set of extensions this module will work with.

Parameters:
extensions - set of extensions this module will work with

start

public void start()
Adds this loader to "DeploymentManager" DeploymentManager.


stop

public void stop()
Removes this loader from "DeploymentManager" DeploymentManager.



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