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 voiddeploy(Deployable deployable)Deploy aDeployableto 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 StringgetDeploymentFactoryClassName()protected abstract javax.enterprise.deploy.spi.DeploymentManagergetDeploymentManager(javax.enterprise.deploy.shared.factories.DeploymentFactoryManager dfm)protected RuntimeConfigurationgetRuntimeConfiguration()voidredeploy(Deployable deployable)Redeploy aDeployablealready deployed to the running container.voidstart(Deployable deployable)Starts aDeployablethat is already deployed in the running container but that is not servicing requests.voidstop(Deployable deployable)Stop aDeployablethat is already deployed in the running container in order to prevent it from servicing requests.voidundeploy(Deployable deployable)Undeploy aDeployablefrom 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 aDeployableto the running container and make it available for requests.- Specified by:
deployin interfaceDeployer- Overrides:
deployin classAbstractDeployer- Parameters:
deployable- theDeployableto deploy
-
undeploy
public void undeploy(Deployable deployable)
Undeploy aDeployablefrom the running container. The service becomes unavailable for requests.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- theDeployableto undeploy
-
redeploy
public void redeploy(Deployable deployable)
Redeploy a
Deployablealready deployed to the running container. The service becomes available for requests.Note that this method will be unsupported by the
Deployers based on theAbstractCopyingInstalledLocalDeployer.- Specified by:
redeployin interfaceDeployer- Overrides:
redeployin classAbstractDeployer- Parameters:
deployable- theDeployableto redeploy- See Also:
Deployer.deploy(Deployable),Deployer.undeploy(Deployable)
-
start
public void start(Deployable deployable)
Starts aDeployablethat is already deployed in the running container but that is not servicing requests.- Specified by:
startin interfaceDeployer- Overrides:
startin classAbstractDeployer- Parameters:
deployable- theDeployableto start
-
stop
public void stop(Deployable deployable)
Stop aDeployablethat is already deployed in the running container in order to prevent it from servicing requests.- Specified by:
stopin interfaceDeployer- Overrides:
stopin classAbstractDeployer- Parameters:
deployable- theDeployableto 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.
-
-