public abstract class SimpleDeployer<T extends Container,U extends ApplicationContainer> extends Object implements Deployer<T,U>
Constructor and Description |
---|
SimpleDeployer() |
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 abstract void |
cleanArtifacts(DeploymentContext dc) |
protected abstract void |
generateArtifacts(DeploymentContext dc) |
MetaData |
getMetaData()
Returns the meta data assocated with this Deployer
|
U |
load(T container,
DeploymentContext context)
No-op
|
<V> V |
loadMetaData(Class<V> type,
DeploymentContext context)
Loads the meta date associated with the application.
|
boolean |
prepare(DeploymentContext dc)
Prepares the application bits for running in the application server.
|
void |
unload(U appContainer,
DeploymentContext context)
No-op
|
public <V> V loadMetaData(Class<V> type, DeploymentContext context)
loadMetaData
in interface Deployer<T extends Container,U extends ApplicationContainer>
type
- type of meta-data that this deployer has declared providing.public boolean prepare(DeploymentContext dc)
public U load(T container, DeploymentContext context)
public void unload(U appContainer, DeploymentContext context)
public void clean(DeploymentContext context)
public MetaData getMetaData()
getMetaData
in interface Deployer<T extends Container,U extends ApplicationContainer>
protected abstract void generateArtifacts(DeploymentContext dc) throws DeploymentException
DeploymentException
protected abstract void cleanArtifacts(DeploymentContext dc) throws DeploymentException
DeploymentException
Copyright © 2019. All rights reserved.