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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclean(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.MetaDataReturns the meta data assocated with this DeployerNo-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.voidNo-op
-
Constructor Details
-
SimpleDeployer
public SimpleDeployer()
-
-
Method Details
-
loadMetaData
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. -
load
No-op -
unload
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
-