public interface ServiceBuilderExtension
The interface ServiceBuilderExtension provides an extension point to org.apache.axis2.deployment.Deployer interface. During the deployment, a Deployer invoke all ServiceBuilderExtension instances associated with it and receive a list of org.apache.axis2.description.AxisService generated by one of above ServiceBuilderExtension instances.
It is possible to register ServiceBuilderExtension for a org.apache.axis2.deployment.Deployer through the axis2.xml configuration file or one can can set ServiceBuilderExtension programtically.
Example
<deployer extension="extension" directory="custom-directory" class="Deployer implementation">
<serviceBuilderExtension name ="builderExtensionA" class="org.apache.axis2.BuilderExtensionA"/>
<serviceBuilderExtension name ="builderExtensionA" class="org.apache.axis2.BuilderExtensionB"/>
<serviceBuilderExtension name ="builderExtensionA" class="org.apache.axis2.BuilderExtensionC"/>
</deployer>
Modifier and Type | Method and Description |
---|---|
Map<String,AxisService> |
buildAxisServices(DeploymentFileData deploymentFileData)
Builds the AxisService.
|
void |
init(ConfigurationContext configurationContext)
Initialize ServiceBuilderExtension instance.
|
void |
setDirectory(String directory) |
void init(ConfigurationContext configurationContext)
configurationContext
- the configuration contextMap<String,AxisService> buildAxisServices(DeploymentFileData deploymentFileData) throws DeploymentException
deploymentFileData
- the deployment file data *DeploymentException
- the deployment exceptionvoid setDirectory(String directory)
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.