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 void
clean(DeploymentContext ctx)
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<V> V
loadMetaData(Class<V> clazz, DeploymentContext deploymentContext)
Loads the meta date associated with the application.boolean
prepare(DeploymentContext ctx)
Prepares the application bits for running in the application server.
-
-
-
Method Detail
-
getMetaData
public MetaData getMetaData()
Description copied from interface:Deployer
Returns the meta data associated with this Deployer- Specified by:
getMetaData
in 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:Deployer
Loads the meta date associated with the application.- Specified by:
loadMetaData
in 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:Deployer
Prepares 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:
prepare
in 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:Deployer
Clean any files and artifacts that were created during the execution of the prepare method.- Specified by:
clean
in interfaceDeployer<T extends MicroProfileContainer,U extends MicroProfileApplicationContainer>
- Parameters:
ctx
- deployment context
-
-