org.objectweb.jonas.ws.mbean
Class AbstractWebServiceMBean
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.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
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 javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWebServiceMBean
public AbstractWebServiceMBean(java.lang.String objectName)
- Constructor for default J2eeManagedObject
- Parameters:
objectName
- the MBean's ObjectName
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