Class MicroProfileDeployer<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer>
- java.lang.Object
-
- fish.payara.microprofile.connector.MicroProfileDeployer<T,U>
-
- All Implemented Interfaces:
Deployer<T,U>
- Direct Known Subclasses:
ConfigDeployer,FaultToleranceDeployer,HealthDeployer,JwtAuthDeployer,MetricsDeployer,OpenApiDeployer
public abstract class MicroProfileDeployer<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer> extends Object implements Deployer<T,U>
-
-
Constructor Summary
Constructors Constructor Description MicroProfileDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean(DeploymentContext ctx)Clean any files and artifacts that were created during the execution of the prepare method.MetaDatagetMetaData()Returns the meta data associated with this Deployer<V> VloadMetaData(Class<V> clazz, DeploymentContext deploymentContext)Loads the meta date associated with the application.booleanprepare(DeploymentContext ctx)Prepares the application bits for running in the application server.
-
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Description copied from interface:DeployerReturns the meta data associated with this Deployer- Specified by:
getMetaDatain interfaceDeployer<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer>- Returns:
- the meta data for this Deployer
-
loadMetaData
public <V> V loadMetaData(Class<V> clazz, DeploymentContext deploymentContext)
Description copied from interface:DeployerLoads the meta date associated with the application.- Specified by:
loadMetaDatain interfaceDeployer<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer>- Parameters:
clazz- type of meta-data that this deployer has declared providing.- Returns:
- the meta-data of type V
-
prepare
public boolean prepare(DeploymentContext ctx)
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<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer>- Parameters:
ctx- of the deployment- Returns:
- true if the prepare phase executed successfully
-
clean
public void clean(DeploymentContext ctx)
Description copied from interface:DeployerClean any files and artifacts that were created during the execution of the prepare method.- Specified by:
cleanin interfaceDeployer<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer>- Parameters:
ctx- deployment context
-
-