Package org.glassfish.deployment.common
Class SimpleDeployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer>
- java.lang.Object
-
- org.glassfish.deployment.common.SimpleDeployer<T,U>
-
- All Implemented Interfaces:
org.glassfish.api.deployment.Deployer<T,U>
public abstract class SimpleDeployer<T extends org.glassfish.api.container.Container,U extends org.glassfish.api.deployment.ApplicationContainer> extends Object implements org.glassfish.api.deployment.Deployer<T,U>
Convenient superclass for Deployers which only do prepare and clean up and do not actually load/unload application
-
-
Constructor Summary
Constructors Constructor Description SimpleDeployer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclean(org.glassfish.api.deployment.DeploymentContext context)Clean any files and artifacts that were created during the execution of the prepare method.protected abstract voidcleanArtifacts(org.glassfish.api.deployment.DeploymentContext dc)protected abstract voidgenerateArtifacts(org.glassfish.api.deployment.DeploymentContext dc)org.glassfish.api.deployment.MetaDatagetMetaData()Returns the meta data assocated with this DeployerUload(T container, org.glassfish.api.deployment.DeploymentContext context)No-op<V> VloadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)Loads the meta date associated with the application.booleanprepare(org.glassfish.api.deployment.DeploymentContext dc)Prepares the application bits for running in the application server.voidunload(U appContainer, org.glassfish.api.deployment.DeploymentContext context)No-op
-
-
-
Method Detail
-
loadMetaData
public <V> V loadMetaData(Class<V> type, org.glassfish.api.deployment.DeploymentContext context)
Loads the meta date associated with the application.
-
prepare
public boolean prepare(org.glassfish.api.deployment.DeploymentContext dc)
Prepares the application bits for running in the application server. For certain cases, this is generating non portable artifacts and other application specific tasks. Failure to prepare should throw an exception which will cause the overall deployment to fail.
-
unload
public void unload(U appContainer, org.glassfish.api.deployment.DeploymentContext context)
No-op
-
clean
public void clean(org.glassfish.api.deployment.DeploymentContext context)
Clean any files and artifacts that were created during the execution of the prepare method.
-
getMetaData
public org.glassfish.api.deployment.MetaData getMetaData()
Returns the meta data assocated with this Deployer
-
generateArtifacts
protected abstract void generateArtifacts(org.glassfish.api.deployment.DeploymentContext dc) throws DeploymentException- Throws:
DeploymentException
-
cleanArtifacts
protected abstract void cleanArtifacts(org.glassfish.api.deployment.DeploymentContext dc) throws DeploymentException- Throws:
DeploymentException
-
-