Package org.wso2.carbon.event.sink
Class EventSinkDeployer
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractDeployer
-
- org.wso2.carbon.event.sink.EventSinkDeployer
-
- All Implemented Interfaces:
org.apache.axis2.deployment.Deployer
public class EventSinkDeployer extends org.apache.axis2.deployment.AbstractDeployer
Axis2 deployer which deploys event sinks
-
-
Constructor Summary
Constructors Constructor Description EventSinkDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
void
deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)
Deploys event sink specified by deploymentFileData.void
init(org.apache.axis2.context.ConfigurationContext configurationContext)
void
setDirectory(String s)
void
setExtension(String s)
void
undeploy(String fileName)
Undeploys previously deployed event sink artifact.
-
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext)
-
deploy
public void deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData) throws org.apache.axis2.deployment.DeploymentException
Deploys event sink specified by deploymentFileData. This is called whenever an event sink artifact is added, modified, deleted from the event sink artifact directory- Specified by:
deploy
in interfaceorg.apache.axis2.deployment.Deployer
- Overrides:
deploy
in classorg.apache.axis2.deployment.AbstractDeployer
- Parameters:
deploymentFileData
- File data about the event sink artifact to be deployed- Throws:
org.apache.axis2.deployment.DeploymentException
-
setDirectory
public void setDirectory(String s)
-
setExtension
public void setExtension(String s)
-
undeploy
public void undeploy(String fileName) throws org.apache.axis2.deployment.DeploymentException
Undeploys previously deployed event sink artifact. This is called whenever an event sink artifact is deleted from event sink artifact directory. Also, this is called when an already existing artifact is modified, followed by a call to deploy()- Specified by:
undeploy
in interfaceorg.apache.axis2.deployment.Deployer
- Overrides:
undeploy
in classorg.apache.axis2.deployment.AbstractDeployer
- Parameters:
fileName
- File name of the artifact to be undeployed- Throws:
org.apache.axis2.deployment.DeploymentException
-
cleanup
public void cleanup() throws org.apache.axis2.deployment.DeploymentException
- Specified by:
cleanup
in interfaceorg.apache.axis2.deployment.Deployer
- Overrides:
cleanup
in classorg.apache.axis2.deployment.AbstractDeployer
- Throws:
org.apache.axis2.deployment.DeploymentException
-
-