public interface Deployer
ArtifactType
A developer who wants write a deployer to process an artifact in carbon and add it to a runtime configuration, should implement this. The implementation should then be registered as an OSGi service using the Deployer interface for the DeploymentEngine to find and add to the configuration
| Modifier and Type | Method and Description |
|---|---|
Object |
deploy(Artifact artifact)
Process a deployable artifact and add it to the relevant runtime configuration.
|
ArtifactType |
getArtifactType()
Returns the type of the artifact that the deployer is capable of deploying.
|
URL |
getLocation()
Returns the deploy directory location associated with the deployer.
|
void |
init()
Initialize the Deployer.
|
void |
undeploy(Object key)
Remove a given artifact from the relevant runtime configuration.
|
Object |
update(Artifact artifact)
Updates a already deployed artifact and update its relevant runtime configuration.
|
void init()
This will contain all the code that need to be called when the deployer is initialized
Object deploy(Artifact artifact) throws CarbonDeploymentException
artifact - the Artifact object to deployCarbonDeploymentException - - when an error occurs while doing the deploymentvoid undeploy(Object key) throws CarbonDeploymentException
key - the key of the deployed artifact used for undeploying it from the relevant runtimeCarbonDeploymentException - - when an error occurs while running the undeploymentObject update(Artifact artifact) throws CarbonDeploymentException
artifact - the Artifact object to deployCarbonDeploymentException - - when an error occurs while doing the deploymentURL getLocation()
It can be relative to CARBON_HOME or an abosolute path Eg : webapps, dataservices, sequences or /dev/wso2/deployment/repository/ or file:/dev/wso2/deployment/repository/
ArtifactType getArtifactType()
ArtifactTypeCopyright © 2019 WSO2. All rights reserved.