Package org.apache.axis2.jaxws.framework
Class JAXWSServiceBuilderExtension
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractServiceBuilderExtension
-
- org.apache.axis2.jaxws.framework.JAXWSServiceBuilderExtension
-
- All Implemented Interfaces:
ServiceBuilderExtension
public class JAXWSServiceBuilderExtension extends AbstractServiceBuilderExtension
The Class JAXWSServiceBuilderExtension is an implementation of org.apache.axis2.deployment.ServiceBuilderExtension interface and facilitate to deploy JAX-WS artifacts through other Deployers.
As an example it is possible to use JAXWSServiceBuilderExtension class to add JAX-WS support for service.xml meta file based service deployment. First, JAXWSServiceBuilderExtension create initial AxisService and ServiceDeployer add further configuration based of provided service.xml meta data file. Annotated call may load from embedded archive (AAR), a exploded directory or from Classpath.
It is expected to define only JAXWSMessageReceiver as MessageReceivers in the service.xml file
Example :
<messageReceivers> <messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" class="org.apache.axis2.jaxws.server.JAXWSMessageReceiver"/> <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.jaxws.server.JAXWSMessageReceiver"/> </messageReceivers>
- Since:
- 1.7.0
-
-
Constructor Summary
Constructors Constructor Description JAXWSServiceBuilderExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,AxisService>
buildAxisServices(DeploymentFileData deploymentFileData)
Builds the AxisService.protected boolean
checkPreconditions(Object metaData)
This method check whether all the definedare type of JAXWSMessageReceiver. -
Methods inherited from class org.apache.axis2.deployment.AbstractServiceBuilderExtension
getAxisConfiguration, getConfigurationContext, getDirectory, init, setDirectory
-
-
-
-
Method Detail
-
buildAxisServices
public Map<String,AxisService> buildAxisServices(DeploymentFileData deploymentFileData) throws DeploymentException
Description copied from interface:ServiceBuilderExtension
Builds the AxisService.- Parameters:
deploymentFileData
- the deployment file data *- Returns:
- the map of AxisService instances.
- Throws:
DeploymentException
- the deployment exception
-
checkPreconditions
protected boolean checkPreconditions(Object metaData)
This method check whether all the definedare type of JAXWSMessageReceiver. Return true only if all the elements satisfy above condition. - Parameters:
metaData
- the meta data- Returns:
- true, if successful
-
-