Deployers in Axis2 are used to track the new file additions, file updates and file deletes. Writing an custom deployer is not a difficult task. A deployer is an implementation of org.apache.axis2.deployment.Deployer interface. You can find more details on how to write a deployer on : http://wso2.com/library/3708/
Once you write your custom deployer, you have to register it. Following is how to register a custom deployer.
Add the deployer details to the component.xml file
As the information given in the above configuration, a directory named ‘sample’ in the location ‘repository/deployment/server’ will be monitored. Whenever file with extension ‘xml’ is added, modified or removed deployed() method will be called.
Add the following entry to the <configuration> <instructions> list of the maven-bundle-plugin in your pox.xml file.
To be responsive for real time file additions, updates and deletions configuration ‘hotupdate’ in Axis2.xml has to be set to true.
<parameter name="hotupdate" locked="false">true</parameter>
You can find a sample code in : https://github.com/jsdjayanga/How-to-register-a-custom-deployer-in-Carbon