org.ow2.jonas.ws.axis2
Class Axis2Service
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.ow2.jonas.lib.reconfig.ReconfigEmitter
org.ow2.jonas.lib.service.AbsServiceImpl
org.ow2.jonas.ws.jaxws.base.JAXWSService
org.ow2.jonas.ws.axis2.Axis2Service
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter, Service, JAXWSServiceMBean, IJAXWSService
public class Axis2Service
- extends JAXWSService
- implements IJAXWSService
The Axis2Service class is used to declare Axis2 as a module in JOnAS.
- Author:
- xiaoda
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl |
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString |
Axis2Service
public Axis2Service()
doStart
protected void doStart()
throws ServiceException
- Description copied from class:
JAXWSService
- Starts the JAX-WS service.
- Overrides:
doStart
in class JAXWSService
- Throws:
ServiceException
- If the service startup fails
doStop
protected void doStop()
throws ServiceException
- Description copied from class:
JAXWSService
- Stops the JAX-WS service.
- Overrides:
doStop
in class JAXWSService
- Throws:
ServiceException
- If the service stop fails
createNamingReference
public Reference createNamingReference(org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef serviceRef)
- Description copied from interface:
IJAXWSService
- Construct a Reference dedicated to the given @WebServiceRef metadata.
- Specified by:
createNamingReference
in interface IJAXWSService
- Parameters:
serviceRef
- the reference described by the user.
- Returns:
- a JNDI Naming
Reference
that can be bound in a JNDI Context.
createPOJOWebServiceEndpoint
public IWebServiceEndpoint createPOJOWebServiceEndpoint(org.ow2.util.ee.metadata.war.api.IWarClassMetadata metadata,
ClassLoader loader,
ServletContext servletContext)
throws WSException
- Description copied from interface:
IJAXWSService
- Creates a new POJO Web service endpoint from classes metadata.
- Specified by:
createPOJOWebServiceEndpoint
in interface IJAXWSService
- Parameters:
metadata
- the class own metadata (annotation + XML)loader
- the ClassLoader to be used to load classes from the metadataservletContext
- the webapp ServletContext (used to locate web resource)
- Returns:
- A POJO typed IWebServiceEndpoint based on metadata
- Throws:
WSException
- if it was impossible to create the endpoint (CNFE, ...)
finalizePOJODeployment
public void finalizePOJODeployment(ServletContext context)
- Finalize the deployment of POJO endpoints contained in the given ServletContext.
- Specified by:
finalizePOJODeployment
in interface IJAXWSService
- Parameters:
context
- ServletContext.
undeployPOJOEndpoints
public void undeployPOJOEndpoints(ServletContext context)
- Stop and undeploy the POJO endpoints contained in the given ServletContext.
- Specified by:
undeployPOJOEndpoints
in interface IJAXWSService
- Parameters:
context
- ServletContext.
bindEventService
public void bindEventService(org.ow2.util.event.api.IEventService eventService)
unbindEventService
public void unbindEventService(org.ow2.util.event.api.IEventService eventService)
Copyright © 2010 OW2 Consortium. All Rights Reserved.