Interface ApplicationDeploymentExtension
public interface ApplicationDeploymentExtension
Optional, application-owned behavior around a CloudForge deployment.
Implementations are discovered with ServiceLoader. They keep
application packaging and verification outside the generic CDK engine and its
consumer applications.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterDeploy(DeploymentConfig config, DeploymentTarget target, Path workingDirectory) Invoked after a successful local deployment.Application ID this extension owns.default voidbeforeDeploy(DeploymentConfig config, DeploymentTarget target, Path workingDirectory) Invoked before the generic deployer synthesizes or deploys the application.default booleansupports(DeploymentTarget target) Whether this extension applies to the requested target.
-
Method Details
-
applicationId
String applicationId()Application ID this extension owns. -
supports
Whether this extension applies to the requested target. -
beforeDeploy
default void beforeDeploy(DeploymentConfig config, DeploymentTarget target, Path workingDirectory) throws Exception Invoked before the generic deployer synthesizes or deploys the application.- Throws:
Exception
-
afterDeploy
default void afterDeploy(DeploymentConfig config, DeploymentTarget target, Path workingDirectory) throws Exception Invoked after a successful local deployment.- Throws:
Exception
-