org.objectweb.jonas.management.j2eemanagement
Class J2EEManagedObject

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.objectweb.jonas.management.ReconfigDispatcher
          extended by org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean
Direct Known Subclasses:
AbstractWebServiceMBean, EJB, J2EEDeployedObject, J2EEDomain, J2EEResource, J2EEServer, JavaVm, JCAActivationSpec, JCAAdminObject, JCAConnectionFactory, JCAManagedConnectionFactory, JDBCDataSource, JDBCDriver, ResourceAdapter

public class J2EEManagedObject
extends ReconfigDispatcher

This class implements the J2EEManagedObject type specified in JSR77

Author:
Adriana Danes

Field Summary
static java.lang.String J2EE_TYPE_APPLICATION
          Constant for a j2ee application
static java.lang.String J2EE_TYPE_SERVER
          Constant for j2ee server
static java.lang.String NAME
          Name constant
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
protected J2EEManagedObject(java.lang.String objectName)
          MBean constructor
protected J2EEManagedObject(java.lang.String objectName, boolean stateManageable, boolean statisticsProvider, boolean eventProvider)
          MBean constructor
 
Method Summary
 java.lang.String getObjectName()
          Return this MBean's name
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean 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
 

Field Detail

NAME

public static final java.lang.String NAME
Name constant

See Also:
Constant Field Values

J2EE_TYPE_SERVER

public static final java.lang.String J2EE_TYPE_SERVER
Constant for j2ee server

See Also:
Constant Field Values

J2EE_TYPE_APPLICATION

public static final java.lang.String J2EE_TYPE_APPLICATION
Constant for a j2ee application

See Also:
Constant Field Values
Constructor Detail

J2EEManagedObject

protected J2EEManagedObject(java.lang.String objectName)
MBean constructor

Parameters:
objectName - The complete name of the managed object

J2EEManagedObject

protected J2EEManagedObject(java.lang.String objectName,
                            boolean stateManageable,
                            boolean statisticsProvider,
                            boolean eventProvider)
MBean constructor

Parameters:
objectName - object name of the managed object
stateManageable - if true, this managed object implements J2EE State Management Model
statisticsProvider - if true, this managed object implements the J2EE StatisticProvide Model
eventProvider - if true, this managed object implements the J2EE EventProvider Model
Method Detail

getObjectName

public java.lang.String getObjectName()
Return this MBean's name

Returns:
The name of the MBean (see OBJECT_NAME in the JSR77)

isEventProvider

public boolean isEventProvider()
Returns:
true if it is an event provider

isStateManageable

public boolean isStateManageable()
Returns:
true if this managed object implements J2EE State Management Model

isStatisticsProvider

public boolean isStatisticsProvider()
Returns:
true if this managed object implements the J2EE StatisticProvider Model