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

java.lang.Object
  extended by org.apache.commons.modeler.BaseModelMBean
      extended by org.ow2.util.jmx.impl.BaseModelMBeanExt
          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, org.ow2.util.jmx.api.IBaseModelMBeanExt
Direct Known Subclasses:
EJBMBean, J2EEDeployedObjectMBean, J2EEServerMBean

public class J2EEManagedObjectMBean<T extends EZBJ2EEManagedObject>
extends org.ow2.util.jmx.impl.BaseModelMBeanExt

J2EEManagedObject MBean Base.

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.apache.commons.modeler.BaseModelMBean
attributeBroadcaster, generalBroadcaster, info, oname, registry, resource, resourceType, source
 
Constructor Summary
J2EEManagedObjectMBean()
          Create the mbean.
 
Method Summary
 java.lang.String getBaseModelMBeanExtId()
          Get the BaseModelMBeanExt id.
protected static org.ow2.util.log.Log getLogger()
           
protected  T getManagedComponent()
           
 boolean isEventProvider()
           
 boolean isStateManageable()
           
 boolean isStatisticsProvider()
           
 void postRegister(java.lang.Boolean registrationDone)
           
 void preDeregister()
           
 
Methods inherited from class org.ow2.util.jmx.impl.BaseModelMBeanExt
addAttribute, addOperation, getAttribute, getAttributes, getMBeanInfo, invoke, removeAttribute, removeOperation, setAttribute, setAttributes
 
Methods inherited from class org.apache.commons.modeler.BaseModelMBean
addAttributeChangeNotificationListener, addNotificationListener, createDefaultModelMBeanInfo, createResource, getClassName, getJmxName, getManagedResource, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, isModelMBeanInfoValid, load, postDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.modelmbean.ModelMBean
setManagedResource, setModelMBeanInfo
 
Methods inherited from interface javax.management.PersistentMBean
load, store
 
Methods inherited from interface javax.management.modelmbean.ModelMBeanNotificationBroadcaster
addAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, preRegister
 

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.

postRegister

public void postRegister(java.lang.Boolean registrationDone)
Specified by:
postRegister in interface javax.management.MBeanRegistration
Overrides:
postRegister in class org.apache.commons.modeler.BaseModelMBean

preDeregister

public void preDeregister()
                   throws java.lang.Exception
Specified by:
preDeregister in interface javax.management.MBeanRegistration
Overrides:
preDeregister in class org.apache.commons.modeler.BaseModelMBean
Throws:
java.lang.Exception

getBaseModelMBeanExtId

public java.lang.String getBaseModelMBeanExtId()
Get the BaseModelMBeanExt id.

Specified by:
getBaseModelMBeanExtId in class org.ow2.util.jmx.impl.BaseModelMBeanExt
Returns:
The BaseModelMBeanExt id.


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