org.apache.synapse.deployers
Class ExtensionDeployer

java.lang.Object
  extended by org.apache.axis2.deployment.AbstractDeployer
      extended by org.apache.synapse.deployers.ExtensionDeployer
All Implemented Interfaces:
Deployer

public class ExtensionDeployer
extends 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
 
Constructor Summary
ExtensionDeployer()
           
 
Method Summary
 void deploy(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(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionDeployer

public ExtensionDeployer()
Method Detail

init

public void init(ConfigurationContext configurationContext)
Initializes the Deployer

Parameters:
configurationContext - - ConfigurationContext of Axis2 from which the deployer is initialized

deploy

public void deploy(DeploymentFileData deploymentFileData)
            throws 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 Deployer
Overrides:
deploy in class AbstractDeployer
Parameters:
deploymentFileData - - describes the updated file
Throws:
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 DeploymentException
This will be called when a particular jar file is deleted from the specified folder.

Specified by:
undeploy in interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
string - - filename of the deleted file
Throws:
DeploymentException - - incase of an error in undeployment


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.