org.ow2.jonas.ws.axis2
Class Axis2Service

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.ow2.jonas.lib.reconfig.ReconfigEmitter
          extended by org.ow2.jonas.lib.service.AbsServiceImpl
              extended by org.ow2.jonas.ws.jaxws.base.JAXWSService
                  extended by 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

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Fields inherited from interface org.ow2.jonas.ws.jaxws.IJAXWSService
KEY_WEB_SERVICES_METADATAS
 
Constructor Summary
Axis2Service()
           
 
Method Summary
 void bindEventService(org.ow2.util.event.api.IEventService eventService)
           
 Reference createNamingReference(org.ow2.util.ee.metadata.common.api.struct.IJaxwsWebServiceRef serviceRef)
          Construct a Reference dedicated to the given @WebServiceRef metadata.
 IWebServiceEndpoint createPOJOWebServiceEndpoint(org.ow2.util.ee.metadata.war.api.IWarClassMetadata metadata, ClassLoader loader, ServletContext servletContext)
          Creates a new POJO Web service endpoint from classes metadata.
protected  void doStart()
          Starts the JAX-WS service.
protected  void doStop()
          Stops the JAX-WS service.
 void finalizePOJODeployment(ServletContext context)
          Finalize the deployment of POJO endpoints contained in the given ServletContext.
 void unbindEventService(org.ow2.util.event.api.IEventService eventService)
           
 void undeployPOJOEndpoints(ServletContext context)
          Stop and undeploy the POJO endpoints contained in the given ServletContext.
 
Methods inherited from class org.ow2.jonas.ws.jaxws.base.JAXWSService
getJmxService, setJmxService
 
Methods inherited from class org.ow2.jonas.lib.service.AbsServiceImpl
convertToList, doInit, getDomainName, getJonasServerName, getName, getServerProperties, init, isStarted, setName, setServerProperties, start, stop, throwRequirementException, toString
 
Methods inherited from class org.ow2.jonas.lib.reconfig.ReconfigEmitter
initLogger, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Constructor Detail

Axis2Service

public Axis2Service()
Method Detail

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 metadata
servletContext - 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.