|
||||||||||
| 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.
| Field Summary | |
|---|---|
static java.lang.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 |
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. |
void |
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 |
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 java.lang.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.DeployerException
deployable - the given deployable to test.
org.ow2.util.ee.deploy.api.deployer.DeployerException - 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
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.
public void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
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.
public void isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
throws org.ow2.util.ee.deploy.api.deployer.DeployerException
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||