Package org.glassfish.extras.grizzly
Class GrizzlyDeployer
- java.lang.Object
-
- org.glassfish.extras.grizzly.GrizzlyDeployer
-
- All Implemented Interfaces:
Deployer<GrizzlyContainer,GrizzlyApp>
@Service(name="grizzly") public class GrizzlyDeployer extends Object implements Deployer<GrizzlyContainer,GrizzlyApp>
- Author:
- Jerome Dochez
-
-
Constructor Summary
Constructors Constructor Description GrizzlyDeployer()
-
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.MetaDatagetMetaData()Returns the meta data associated with this DeployerGrizzlyAppload(GrizzlyContainer container, DeploymentContext context)Deploy aAdapterprGrizzlyAdapter.<V> VloadMetaData(Class<V> 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(GrizzlyApp appContainer, DeploymentContext context)Unload or stop a previously running application identified with the ContractProvider instance.
-
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Description copied from interface:DeployerReturns the meta data associated with this Deployer- Specified by:
getMetaDatain interfaceDeployer<GrizzlyContainer,GrizzlyApp>- Returns:
- the meta data for this Deployer
-
loadMetaData
public <V> V loadMetaData(Class<V> type, DeploymentContext context)
Description copied from interface:DeployerLoads the meta date associated with the application.- Specified by:
loadMetaDatain interfaceDeployer<GrizzlyContainer,GrizzlyApp>- 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.- Specified by:
preparein interfaceDeployer<GrizzlyContainer,GrizzlyApp>- Parameters:
context- of the deployment- Returns:
- true if the prepare phase executed successfully
-
load
public GrizzlyApp load(GrizzlyContainer container, DeploymentContext context)
Deploy aAdapterprGrizzlyAdapter.- Specified by:
loadin interfaceDeployer<GrizzlyContainer,GrizzlyApp>- Parameters:
container-context-- Returns:
-
unload
public void unload(GrizzlyApp 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.- Specified by:
unloadin interfaceDeployer<GrizzlyContainer,GrizzlyApp>- Parameters:
appContainer- instance to be stoppedcontext- of the undeployment
-
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.- Specified by:
cleanin interfaceDeployer<GrizzlyContainer,GrizzlyApp>- Parameters:
context- deployment context
-
-