org.objectweb.easybeans.jsr77
Class J2EEManagedObjectMBean<T>

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.objectweb.easybeans.jsr77.J2EEManagedObjectMBean<T>
Type Parameters:
T - ManagedObject type
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.MBeanRegistration, javax.management.modelmbean.ModelMBean, javax.management.modelmbean.ModelMBeanNotificationBroadcaster, javax.management.NotificationBroadcaster, javax.management.PersistentMBean
Direct Known Subclasses:
EJBMBean, J2EEDeployedObjectMBean, J2EEServerMBean

public class J2EEManagedObjectMBean<T>
extends org.apache.commons.modeler.BaseModelMBean

J2EEManagedObject MBean Base.

Author:
Guillaume Sauthier

Field Summary
private static boolean IS_EVENT_PROVIDER
          Is the MBean an Event Provider ? (Optionnal support)
private static boolean IS_STATE_MANAGEABLE
          Is the MBean State Manageable ? (Optionnal support)
private static boolean IS_STATISTICS_PROVIDER
          Is the MBean a Statistics Provider ? (Optionnal support)
private static JLog logger
          Logger.
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
J2EEManagedObjectMBean()
          Create the mbean.
 
Method Summary
protected static JLog getLogger()
           
protected  T getManagedComponent()
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getJmxName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

private static JLog logger
Logger.


IS_EVENT_PROVIDER

private static final boolean IS_EVENT_PROVIDER
Is the MBean an Event Provider ? (Optionnal support)

See Also:
Constant Field Values

IS_STATISTICS_PROVIDER

private static final boolean IS_STATISTICS_PROVIDER
Is the MBean a Statistics Provider ? (Optionnal support)

See Also:
Constant Field Values

IS_STATE_MANAGEABLE

private static final boolean IS_STATE_MANAGEABLE
Is the MBean State Manageable ? (Optionnal support)

See Also:
Constant Field Values
Constructor Detail

J2EEManagedObjectMBean

public J2EEManagedObjectMBean()
                       throws javax.management.MBeanException
Create the mbean.

Throws:
javax.management.MBeanException - if the super constructor fails.
Method Detail

getManagedComponent

protected T getManagedComponent()
Returns:
the deployer (managed object)

isStateManageable

public boolean isStateManageable()
Returns:
Returns true is the MBean can manage its state.

isStatisticsProvider

public boolean isStatisticsProvider()
Returns:
Returns true if this MBean can provides JSR77 Statistics.

isEventProvider

public boolean isEventProvider()
Returns:
Returns true if this MBean can provides JSR77 Events.

getLogger

protected static final JLog getLogger()
Returns:
Returns the logger.