public abstract class JavaEEDeployer<T extends Container,U extends ApplicationContainer> extends Object implements Deployer<T,U>
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationRegistry |
appRegistry |
protected ServerEnvironment |
env |
protected org.glassfish.hk2.api.ServiceLocator |
habitat |
protected ApplicationVisitor |
undeploymentVisitor |
| Constructor and Description |
|---|
JavaEEDeployer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean(DeploymentContext context)
Clean any files and artifacts that were created during the execution
of the prepare method.
|
protected void |
generateArtifacts(DeploymentContext dc) |
protected Application |
getApplicationFromApplicationInfo(String appName) |
protected String |
getCommonClassPath() |
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
protected String |
getModuleClassPath(DeploymentContext ctx)
Returns the classpath associated with this module
Can be used to compile generated cmp classes,
rmi stubs etc.
|
protected String |
getObjectType(DeploymentContext context) |
U |
load(T 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.
|
<V> V |
loadMetaData(Class<V> type,
DeploymentContext dc)
Loads the meta date associated with the application.
|
boolean |
prepare(DeploymentContext dc)
Prepares the application bits for running in the application server.
|
@Inject protected ServerEnvironment env
@Inject protected ApplicationRegistry appRegistry
@Inject protected org.glassfish.hk2.api.ServiceLocator habitat
@Inject @Named(value="application_undeploy") @Optional protected ApplicationVisitor undeploymentVisitor
public MetaData getMetaData()
getMetaData in interface Deployer<T extends Container,U extends ApplicationContainer>protected String getModuleClassPath(DeploymentContext ctx)
protected String getCommonClassPath()
public <V> V loadMetaData(Class<V> type, DeploymentContext dc)
loadMetaData in interface Deployer<T extends Container,U extends ApplicationContainer>type - type of metadata that this deployer has declared providing.dc - deployment contextpublic boolean prepare(DeploymentContext dc)
public U load(T container, DeploymentContext context)
protected void generateArtifacts(DeploymentContext dc) throws DeploymentException
DeploymentExceptionpublic void clean(DeploymentContext context)
protected String getObjectType(DeploymentContext context)
protected Application getApplicationFromApplicationInfo(String appName)
Copyright © 2017. All rights reserved.