Package com.sun.enterprise.web
Class WebDeployer
- java.lang.Object
-
- org.glassfish.javaee.core.deployment.JavaEEDeployer<WebContainer,WebApplication>
-
- com.sun.enterprise.web.WebDeployer
-
- All Implemented Interfaces:
Deployer<WebContainer,WebApplication>
@Service public class WebDeployer extends JavaEEDeployer<WebContainer,WebApplication>
Web module deployer.- Author:
- jluehe, Jerome Dochez
-
-
Field Summary
-
Fields inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
appRegistry, env, habitat, undeploymentVisitor
-
-
Constructor Summary
Constructors Constructor Description WebDeployer()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgenerateArtifacts(DeploymentContext dc)MetaDatagetMetaData()Returns the meta data associated with this DeployerWebApplicationload(WebContainer container, DeploymentContext dc)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.<V> VloadMetaData(Class<V> type, DeploymentContext dc)Loads the meta date associated with the application.voidunload(WebApplication webApplication, DeploymentContext dc)Unload or stop a previously running application identified with the ContractProvider instance.-
Methods inherited from class org.glassfish.javaee.core.deployment.JavaEEDeployer
clean, getApplicationFromApplicationInfo, getCommonClassPath, getModuleClassPath, getObjectType, prepare
-
-
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Returns the meta data associated with this Deployer- Specified by:
getMetaDatain interfaceDeployer<WebContainer,WebApplication>- Overrides:
getMetaDatain classJavaEEDeployer<WebContainer,WebApplication>- Returns:
- the meta data for this Deployer
-
loadMetaData
public <V> V loadMetaData(Class<V> type, DeploymentContext dc)
Description copied from class:JavaEEDeployerLoads the meta date associated with the application.- Specified by:
loadMetaDatain interfaceDeployer<WebContainer,WebApplication>- Overrides:
loadMetaDatain classJavaEEDeployer<WebContainer,WebApplication>- Parameters:
type- type of metadata that this deployer has declared providing.dc- deployment context- Returns:
- the meta-data of type V
-
generateArtifacts
protected void generateArtifacts(DeploymentContext dc) throws DeploymentException
- Overrides:
generateArtifactsin classJavaEEDeployer<WebContainer,WebApplication>- Throws:
DeploymentException
-
load
public WebApplication load(WebContainer container, DeploymentContext dc)
Description copied from class:JavaEEDeployerLoads 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.- Specified by:
loadin interfaceDeployer<WebContainer,WebApplication>- Overrides:
loadin classJavaEEDeployer<WebContainer,WebApplication>- Parameters:
container- in which the application will residedc- of the deployment- Returns:
- an ApplicationContainer instance identifying the running application
-
unload
public void unload(WebApplication webApplication, DeploymentContext dc)
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.- Parameters:
webApplication- instance to be stoppeddc- of the undeployment
-
-