@Service public class GenericDeployer<T extends Container> extends Object implements Deployer<T,GenericApplicationContainer>
| Constructor and Description |
|---|
GenericDeployer() |
| 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.
|
MetaData |
getMetaData()
Returns the meta data associated with this Deployer
|
GenericApplicationContainer |
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 context)
Loads the meta date associated with the application.
|
boolean |
prepare(DeploymentContext context)
Prepares the application bits for running in the application server.
|
void |
unload(GenericApplicationContainer appContainer,
DeploymentContext context)
Unload or stop a previously running application identified with the
ContractProvider instance.
|
public MetaData getMetaData()
DeployergetMetaData in interface Deployer<T extends Container,GenericApplicationContainer>public <V> V loadMetaData(Class<V> type, DeploymentContext context)
DeployerloadMetaData in interface Deployer<T extends Container,GenericApplicationContainer>type - type of meta-data that this deployer has declared providing.public boolean prepare(DeploymentContext context)
Deployerprepare in interface Deployer<T extends Container,GenericApplicationContainer>context - of the deploymentpublic GenericApplicationContainer load(T container, DeploymentContext context)
Deployerload in interface Deployer<T extends Container,GenericApplicationContainer>container - in which the application will residecontext - of the deploymentpublic void unload(GenericApplicationContainer appContainer, DeploymentContext context)
Deployerunload in interface Deployer<T extends Container,GenericApplicationContainer>appContainer - instance to be stoppedcontext - of the undeploymentpublic void clean(DeploymentContext context)
Deployerclean in interface Deployer<T extends Container,GenericApplicationContainer>context - deployment contextCopyright © 2019. All rights reserved.