org.objectweb.jonas.ws.mbean
Class AbstractWebServiceMBean

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended byorg.objectweb.jonas.ws.mbean.AbstractWebServiceMBean
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean
Direct Known Subclasses:
Handler, PortComponent, Service

public abstract class AbstractWebServiceMBean
extends J2EEManagedObject

Base Class for WebServices MBeans. It makes registration/unregistration of hierarchical MBeans very easy. Needs to be subclassed for each WebService MBean.

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
AbstractWebServiceMBean(java.lang.String objectName)
          Constructor for default J2eeManagedObject
 
Method Summary
protected abstract  java.util.List getChildsMBeans()
           
protected abstract  java.lang.String getMBeanType()
           
 javax.management.ObjectName getRealObjectName()
           
 void register()
          Registers the MBean (and its childs) in the default MBeanServer
 void register(javax.management.MBeanServer server)
          Registers the MBean (and its childs) in the specified MBeanServer
 void unregister()
          Unregisters the MBean (and its childs) from the default MBeanServer
 void unregister(javax.management.MBeanServer server)
          Unregisters the MBean (and its childs) from the specified MBeanServer
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
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
 

Constructor Detail

AbstractWebServiceMBean

public AbstractWebServiceMBean(java.lang.String objectName)
Constructor for default J2eeManagedObject

Parameters:
objectName - the MBean's ObjectName
Method Detail

register

public void register()
Registers the MBean (and its childs) in the default MBeanServer


register

public void register(javax.management.MBeanServer server)
Registers the MBean (and its childs) in the specified MBeanServer

Parameters:
server - the MBeanServer where ON will be registered

getMBeanType

protected abstract java.lang.String getMBeanType()
Returns:
Returns the MBean type (as used in mbean-descriptor.xml)

unregister

public void unregister()
Unregisters the MBean (and its childs) from the default MBeanServer


unregister

public void unregister(javax.management.MBeanServer server)
Unregisters the MBean (and its childs) from the specified MBeanServer

Parameters:
server - the MBeanServer where ON will be unregistered

getChildsMBeans

protected abstract java.util.List getChildsMBeans()
Returns:
Returns the Child List

getRealObjectName

public javax.management.ObjectName getRealObjectName()
Returns:
Returns the ObjectName instance