|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.util.ee.deploy.impl.deployer.DeployerManager
public final class DeployerManager
This manager is managing different deployers. The deployer that will be used is a deployer that is supporting a given IDeployable object. If there are many deployers for the same type of Deployable, the first deployer that is supporting the given deployable will be used. At each deployment/undeployment phase, invoke registered callbacks.
| Field Summary | |
|---|---|
static String |
DEPLOYER_FACTORY_CLASS_NAME
Name of the property thats defines the deployer's class. |
| Constructor Summary | |
|---|---|
DeployerManager()
Create a new Manager of deployer. |
|
| Method Summary | |
|---|---|
void |
addCallback(org.ow2.util.ee.deploy.api.deployer.IDeployerManagerCallback callback)
Add a new callback instance that will be invoked at each deployment/undeployment phase. |
void |
deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Deploy a given deployable by finding the first deployer that accept this type of deployable. |
protected org.ow2.util.ee.deploy.api.deployer.IDeployer |
findDeployerForDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Find the first available deployer that is supporting the given deployable. |
boolean |
isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Deploy a given deployable by finding the first deployer that accept this type of deployable. |
void |
register(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
Register a new Deployer on this manager instance. |
void |
removeCallback(org.ow2.util.ee.deploy.api.deployer.IDeployerManagerCallback callback)
Remove a callback instance. |
void |
undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Undeploy a given deployable by finding the first deployer that accept this type of deployable. |
void |
unregister(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
Unregister a Deployer from this manager instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEPLOYER_FACTORY_CLASS_NAME
| Constructor Detail |
|---|
public DeployerManager()
| Method Detail |
|---|
public void register(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
register in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagerdeployer - the deployer to registerpublic void unregister(org.ow2.util.ee.deploy.api.deployer.IDeployer deployer)
unregister in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagerdeployer - the given deployer to unregister.
protected org.ow2.util.ee.deploy.api.deployer.IDeployer findDeployerForDeployable(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException
deployable - the given deployable to test.
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException - if no deployer is found for the given deployable.
public void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException,
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException
deploy in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagerdeployable - the given deployable to deploy.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if it cannot be undeployed.
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException - if no deployer is found for the given deployable.
public void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException,
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException
undeploy in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagerdeployable - the given deployable to undeploy.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if it cannot be undeployed.
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException - if no deployer is found for the given deployable.
public boolean isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException,
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException
isDeployed in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagerdeployable - the given deployable to deploy.
org.ow2.util.ee.deploy.api.deployer.DeployerException - if it cannot be undeployed.
org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException - if no deployer is found for the given deployable.public void addCallback(org.ow2.util.ee.deploy.api.deployer.IDeployerManagerCallback callback)
addCallback in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagercallback - The given callbackpublic void removeCallback(org.ow2.util.ee.deploy.api.deployer.IDeployerManagerCallback callback)
removeCallback in interface org.ow2.util.ee.deploy.api.deployer.IDeployerManagercallback - The given callback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||