Class AbstractJsr88Deployer
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployer.AbstractDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
-
- org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer
-
- Direct Known Subclasses:
GlassFish3xRemoteDeployer
public abstract class AbstractJsr88Deployer extends AbstractRemoteDeployer
JSR-88 remote deployer.
-
-
Constructor Summary
Constructors Constructor Description AbstractJsr88Deployer(RemoteContainer container)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.protected javax.enterprise.deploy.spi.TargetModuleID[]
filterTargetModuleIDs(List<javax.enterprise.deploy.spi.TargetModuleID> targetModuleIDs)
protected javax.enterprise.deploy.spi.Target[]
filterTargets(javax.enterprise.deploy.spi.Target[] targets)
protected abstract String
getDeploymentFactoryClassName()
protected abstract javax.enterprise.deploy.spi.DeploymentManager
getDeploymentManager(javax.enterprise.deploy.shared.factories.DeploymentFactoryManager dfm)
protected RuntimeConfiguration
getRuntimeConfiguration()
void
redeploy(Deployable deployable)
Redeploy aDeployable
already deployed to the running container.void
start(Deployable deployable)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.void
stop(Deployable deployable)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.void
undeploy(Deployable deployable)
Undeploy aDeployable
from the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractRemoteDeployer
getContainer, getType
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, start, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
AbstractJsr88Deployer
public AbstractJsr88Deployer(RemoteContainer container)
Constructor.- Parameters:
container
- the remote container
-
-
Method Detail
-
deploy
public void deploy(Deployable deployable)
Deploy aDeployable
to the running container and make it available for requests.- Specified by:
deploy
in interfaceDeployer
- Overrides:
deploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployable
from the running container. The service becomes unavailable for requests.- Specified by:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to undeploy
-
redeploy
public void redeploy(Deployable deployable)
Redeploy a
Deployable
already deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployer
s based on theAbstractCopyingInstalledLocalDeployer
.- Specified by:
redeploy
in interfaceDeployer
- Overrides:
redeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to redeploy- See Also:
Deployer.deploy(Deployable)
,Deployer.undeploy(Deployable)
-
start
public void start(Deployable deployable)
Starts aDeployable
that is already deployed in the running container but that is not servicing requests.- Specified by:
start
in interfaceDeployer
- Overrides:
start
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to start
-
stop
public void stop(Deployable deployable)
Stop aDeployable
that is already deployed in the running container in order to prevent it from servicing requests.- Specified by:
stop
in interfaceDeployer
- Overrides:
stop
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to stop
-
getDeploymentFactoryClassName
protected abstract String getDeploymentFactoryClassName()
- Returns:
- The class name of the JSR-88 deployment factory.
-
getDeploymentManager
protected abstract javax.enterprise.deploy.spi.DeploymentManager getDeploymentManager(javax.enterprise.deploy.shared.factories.DeploymentFactoryManager dfm) throws javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
- Parameters:
dfm
- JSR-88 deployment factory manager with the target deployer factory registered.- Returns:
- The JSR-88 deployment manager for the target server.
- Throws:
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException
- If deployment manager creation fails.
-
getRuntimeConfiguration
protected RuntimeConfiguration getRuntimeConfiguration()
- Returns:
- The run time configuration.
-
filterTargets
protected javax.enterprise.deploy.spi.Target[] filterTargets(javax.enterprise.deploy.spi.Target[] targets)
- Parameters:
targets
- List with all available targets for this container instance.- Returns:
- Let implementations filter targets for deploy.
-
filterTargetModuleIDs
protected javax.enterprise.deploy.spi.TargetModuleID[] filterTargetModuleIDs(List<javax.enterprise.deploy.spi.TargetModuleID> targetModuleIDs)
- Parameters:
targetModuleIDs
- List with all available target module IDs for the target module.- Returns:
- Let implementations filter target module IDs for deploy.
-
-