org.objectweb.jonas.jaxr
Class JAXRServiceImpl

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.service.AbsServiceImpl
              extended byorg.objectweb.jonas.jaxr.JAXRServiceImpl
All Implemented Interfaces:
JAXRService, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean, Service

public class JAXRServiceImpl
extends AbsServiceImpl
implements JAXRService

JAXRService Implementation.

Author:
Guillaume Sauthier

Field Summary
static java.lang.String CLASS
          JAXR service configuration parameters (class)
static java.lang.String FACTORIES
          JAXR service configuration parameters (factories)
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
JAXRServiceImpl()
           
 
Method Summary
 void createJAXRConnection(java.util.Properties props)
          Creates a new JAXRConnection from a Properties file.
protected  void doInit(javax.naming.Context ctx)
          Abstract initialization method to be implemented by sub-classes
protected  void doStart()
          Abstract start-up method to be implemented by sub-classes
protected  void doStop()
          Abstract method for service stopping to be implemented by sub-classes
 void modifyJAXRConnection(java.lang.String name, JAXRConnection jaxrc)
          Modify the named JAXRConnection by remove it from Registry and bind the new one.
 void removeJAXRConnection(java.lang.String name)
          Remove the names JAXRConnection from the Registry.
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.service.Service
getName, init, isStarted, setName, start, stop
 

Field Detail

FACTORIES

public static final java.lang.String FACTORIES
JAXR service configuration parameters (factories)

See Also:
Constant Field Values

CLASS

public static final java.lang.String CLASS
JAXR service configuration parameters (class)

See Also:
Constant Field Values
Constructor Detail

JAXRServiceImpl

public JAXRServiceImpl()
Method Detail

doInit

protected void doInit(javax.naming.Context ctx)
               throws ServiceException
Description copied from class: AbsServiceImpl
Abstract initialization method to be implemented by sub-classes

Specified by:
doInit in class AbsServiceImpl
Parameters:
ctx - configuration of the service
Throws:
ServiceException - service initialization failed
See Also:
AbsServiceImpl.doInit(javax.naming.Context)

doStart

protected void doStart()
                throws ServiceException
Description copied from class: AbsServiceImpl
Abstract start-up method to be implemented by sub-classes

Specified by:
doStart in class AbsServiceImpl
Throws:
ServiceException - service start-up failed
See Also:
AbsServiceImpl.doStart()

doStop

protected void doStop()
               throws ServiceException
Description copied from class: AbsServiceImpl
Abstract method for service stopping to be implemented by sub-classes

Specified by:
doStop in class AbsServiceImpl
Throws:
ServiceException - service stopping failed
See Also:
AbsServiceImpl.doStop()

createJAXRConnection

public void createJAXRConnection(java.util.Properties props)
                          throws ServiceException
Description copied from interface: JAXRService
Creates a new JAXRConnection from a Properties file.

Specified by:
createJAXRConnection in interface JAXRService
Parameters:
props - jaxr.properties file
Throws:
ServiceException - if creation fails
See Also:
JAXRService.createJAXRConnection(java.util.Properties)

modifyJAXRConnection

public void modifyJAXRConnection(java.lang.String name,
                                 JAXRConnection jaxrc)
                          throws ServiceException
Description copied from interface: JAXRService
Modify the named JAXRConnection by remove it from Registry and bind the new one.

Specified by:
modifyJAXRConnection in interface JAXRService
Parameters:
name - old JAXRConnection name
jaxrc - new JAXRConnection instance
Throws:
ServiceException - if remove/add fails
See Also:
JAXRService.modifyJAXRConnection(java.lang.String, org.objectweb.jonas.jaxr.JAXRConnection)

removeJAXRConnection

public void removeJAXRConnection(java.lang.String name)
                          throws ServiceException
Description copied from interface: JAXRService
Remove the names JAXRConnection from the Registry.

Specified by:
removeJAXRConnection in interface JAXRService
Parameters:
name - JAXRConnection name to be removed
Throws:
ServiceException - if remove fails.
See Also:
JAXRService.removeJAXRConnection(java.lang.String)