Class 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.
    • Field Summary

      • Fields inherited from class org.apache.axis2.deployment.AbstractDeployer

        deploymentFileDataMap
    • 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 MediatorFactoryFinder
      void init​(org.apache.axis2.context.ConfigurationContext configurationContext)
      Initializes the Deployer
      void setDirectory​(String string)
      This will not be implemented because we do not support changing the directory at runtime
      void setExtension​(String string)
      This will not be implemented because we do not support changing the extension at runtime
      void undeploy​(String string)
      This will be called when a particular jar file is deleted from the specified folder.
      • Methods inherited from class org.apache.axis2.deployment.AbstractDeployer

        cleanup
    • Constructor Detail

      • ExtensionDeployer

        public ExtensionDeployer()
    • 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 interface org.apache.axis2.deployment.Deployer
        Overrides:
        deploy in class org.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 interface org.apache.axis2.deployment.Deployer
        Overrides:
        undeploy in class org.apache.axis2.deployment.AbstractDeployer
        Parameters:
        string - - filename of the deleted file
        Throws:
        org.apache.axis2.deployment.DeploymentException - - incase of an error in undeployment