Package org.apache.synapse.deployers
Class ExtensionDeployer
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractDeployer
-
- org.apache.synapse.deployers.ExtensionDeployer
-
- All Implemented Interfaces:
org.apache.axis2.deployment.Deployer
public class ExtensionDeployer extends org.apache.axis2.deployment.AbstractDeployer
This will support the hot deployment and hot update of Synapse extensions (mediators and startups) at runtime using the Axis2 concepts of deployers.
-
-
Constructor Summary
Constructors Constructor Description ExtensionDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)
This will be called when there is a change in the specified deployment folder (in the axis2.xml) and this will load the relevant classes to the system and register them with the MediatorFactoryFindervoid
init(org.apache.axis2.context.ConfigurationContext configurationContext)
Initializes the Deployervoid
setDirectory(String string)
This will not be implemented because we do not support changing the directory at runtimevoid
setExtension(String string)
This will not be implemented because we do not support changing the extension at runtimevoid
undeploy(String string)
This will be called when a particular jar file is deleted from the specified folder.
-
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext)
Initializes the Deployer- Parameters:
configurationContext
- - ConfigurationContext of Axis2 from which the deployer is initialized
-
deploy
public void deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData) throws org.apache.axis2.deployment.DeploymentException
This will be called when there is a change in the specified deployment folder (in the axis2.xml) and this will load the relevant classes to the system and register them with the MediatorFactoryFinder- Specified by:
deploy
in interfaceorg.apache.axis2.deployment.Deployer
- Overrides:
deploy
in classorg.apache.axis2.deployment.AbstractDeployer
- Parameters:
deploymentFileData
- - describes the updated file- Throws:
org.apache.axis2.deployment.DeploymentException
- - in case an error on the deployment
-
setDirectory
public void setDirectory(String string)
This will not be implemented because we do not support changing the directory at runtime- Parameters:
string
- -
-
setExtension
public void setExtension(String string)
This will not be implemented because we do not support changing the extension at runtime- Parameters:
string
- -
-
undeploy
public void undeploy(String string) throws org.apache.axis2.deployment.DeploymentException
This will be called when a particular jar file is deleted from the specified folder.- Specified by:
undeploy
in interfaceorg.apache.axis2.deployment.Deployer
- Overrides:
undeploy
in classorg.apache.axis2.deployment.AbstractDeployer
- Parameters:
string
- - filename of the deleted file- Throws:
org.apache.axis2.deployment.DeploymentException
- - incase of an error in undeployment
-
-