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

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.ow2.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
 
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 org.ow2.util.log.Log 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
 

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 org.ow2.util.log.Log getLogger()
Returns:
Returns the logger.


Copyright © 2006-2008 OW2 Consortium. All Rights Reserved.