Package org.apache.axis2.deployment
Interface Deployer
- All Known Implementing Classes:
AbstractDeployer,ModuleDeployer,POJODeployer,ServiceDeployer,TransportDeployer
public interface Deployer
This interface is used to provide the custom deployment mechanism , where you
can write your own Deployer to process a particular type and make that to
a service or a module.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Cleanup deploymentvoiddeploy(DeploymentFileData deploymentFileData) Process a file and add it to the configurationvoidinit(ConfigurationContext configCtx) Initialize the DeployervoidsetDirectory(String directory) Set the directoryvoidsetExtension(String extension) Set the extension to look for TODO: Support multiple extensions?voidRemove a given file from the configuration
-
Method Details
-
init
Initialize the Deployer- Parameters:
configCtx- our ConfigurationContext
-
deploy
Process a file and add it to the configuration- Parameters:
deploymentFileData- the DeploymentFileData object to deploy- Throws:
DeploymentException- if there is a problem
-
setDirectory
Set the directory- Parameters:
directory- directory name
-
setExtension
Set the extension to look for TODO: Support multiple extensions?- Parameters:
extension- the file extension associated with this Deployer
-
undeploy
Remove a given file from the configuration- Parameters:
fileName- name of item to remove- Throws:
DeploymentException- if there is a problem
-
cleanup
Cleanup deployment- Throws:
DeploymentException- If an error occurs during cleanup
-