Class EarDeployer
- java.lang.Object
-
- org.glassfish.javaee.full.deployment.EarDeployer
-
-
Field Summary
Fields Modifier and Type Field Description static LoggerdeplLogger
-
Constructor Summary
Constructors Constructor Description EarDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean(DeploymentContext context)Clean any files and artifacts that were created during the execution of the prepare method.protected voidgenerateArtifacts(DeploymentContext context)MetaDatagetMetaData()Returns the meta data associated with this DeployerApplicationContainerload(Container container, DeploymentContext context)Loads a previously prepared application in its execution environment and return a ContractProvider instance that will identify this environment in future communications with the application's container runtime.ObjectloadMetaData(Class type, DeploymentContext context)Loads the meta date associated with the application.booleanprepare(DeploymentContext context)Prepares the application bits for running in the application server.voidunload(ApplicationContainer appContainer, DeploymentContext context)Unload or stop a previously running application identified with the ContractProvider instance.
-
-
-
Field Detail
-
deplLogger
public static final Logger deplLogger
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Description copied from interface:DeployerReturns the meta data associated with this Deployer- Specified by:
getMetaDatain interfaceDeployer- Returns:
- the meta data for this Deployer
-
loadMetaData
public Object loadMetaData(Class type, DeploymentContext context)
Description copied from interface:DeployerLoads the meta date associated with the application.- Specified by:
loadMetaDatain interfaceDeployer- Parameters:
type- type of meta-data that this deployer has declared providing.- Returns:
- the meta-data of type V
-
prepare
public boolean prepare(DeploymentContext context)
Description copied from interface:DeployerPrepares 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.
-
generateArtifacts
protected void generateArtifacts(DeploymentContext context) throws DeploymentException
- Throws:
DeploymentException
-
load
public ApplicationContainer load(Container container, DeploymentContext context)
Description copied from interface:DeployerLoads a previously prepared application in its execution environment and return a ContractProvider instance that will identify this environment in future communications with the application's container runtime.
-
unload
public void unload(ApplicationContainer appContainer, DeploymentContext context)
Description copied from interface:DeployerUnload or stop a previously running application identified with the ContractProvider instance. The container will be stop upon return from this method.
-
clean
public void clean(DeploymentContext context)
Description copied from interface:DeployerClean any files and artifacts that were created during the execution of the prepare method.
-
-