com.caucho.jmx
Class IntrospectionMBean

java.lang.Object
  extended by com.caucho.jmx.IntrospectionMBean
All Implemented Interfaces:
javax.management.DynamicMBean

public class IntrospectionMBean
extends java.lang.Object
implements javax.management.DynamicMBean

Resin implementation of StandardMBean.


Constructor Summary
IntrospectionMBean(java.lang.Object impl, java.lang.Class mbeanInterface)
          Makes a DynamicMBean.
IntrospectionMBean(java.lang.Object impl, java.lang.Class mbeanInterface, boolean isLowercaseAttributeNames)
          Makes a DynamicMBean.
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute)
          Returns an attribute value.
 javax.management.AttributeList getAttributes(java.lang.String[] attributes)
          Returns matching attribute values.
 java.lang.Object getImplementation()
          Returns the implementation.
 javax.management.MBeanInfo getMBeanInfo()
          Returns the introspection information for the MBean.
 java.lang.Object invoke(java.lang.String actionName, java.lang.Object[] params, java.lang.String[] signature)
          Invokes a method on the bean.
 void setAttribute(javax.management.Attribute attribute)
          Sets an attribute value.
 javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
          Sets attribute values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntrospectionMBean

public IntrospectionMBean(java.lang.Object impl,
                          java.lang.Class mbeanInterface)
                   throws javax.management.NotCompliantMBeanException
Makes a DynamicMBean.

Throws:
javax.management.NotCompliantMBeanException

IntrospectionMBean

public IntrospectionMBean(java.lang.Object impl,
                          java.lang.Class mbeanInterface,
                          boolean isLowercaseAttributeNames)
                   throws javax.management.NotCompliantMBeanException
Makes a DynamicMBean.

Parameters:
isLowercaseAttributeNames - true if attributes should have first letter lowercased
Throws:
javax.management.NotCompliantMBeanException
Method Detail

getImplementation

public java.lang.Object getImplementation()
Returns the implementation.


getAttribute

public java.lang.Object getAttribute(java.lang.String attribute)
                              throws javax.management.AttributeNotFoundException,
                                     javax.management.MBeanException,
                                     javax.management.ReflectionException
Returns an attribute value.

Specified by:
getAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException

setAttribute

public void setAttribute(javax.management.Attribute attribute)
                  throws javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.MBeanException,
                         javax.management.ReflectionException
Sets an attribute value.

Specified by:
setAttribute in interface javax.management.DynamicMBean
Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException

getAttributes

public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
Returns matching attribute values.

Specified by:
getAttributes in interface javax.management.DynamicMBean

setAttributes

public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
Sets attribute values.

Specified by:
setAttributes in interface javax.management.DynamicMBean

invoke

public java.lang.Object invoke(java.lang.String actionName,
                               java.lang.Object[] params,
                               java.lang.String[] signature)
                        throws javax.management.MBeanException,
                               javax.management.ReflectionException
Invokes a method on the bean.

Specified by:
invoke in interface javax.management.DynamicMBean
Throws:
javax.management.MBeanException
javax.management.ReflectionException

getMBeanInfo

public javax.management.MBeanInfo getMBeanInfo()
Returns the introspection information for the MBean.

Specified by:
getMBeanInfo in interface javax.management.DynamicMBean