org.jboss.aspects.jmx
Class JmxIntrospectingMixin

java.lang.Object
  extended by org.jboss.aspects.jmx.JmxIntrospectingMixin
All Implemented Interfaces:
DynamicMBean

public class JmxIntrospectingMixin
extends Object
implements DynamicMBean

Introspects a class to provide the JMX management interface. The class does not have to follow any pattern.

public get/set methods will create mbean attributes, all other public methods will be operations.

Version:
$Revision: 74264 $
Author:
Bill Burke

Nested Class Summary
 class JmxIntrospectingMixin.OpsKey
           
 
Constructor Summary
JmxIntrospectingMixin(Object target)
           
 
Method Summary
 Object getAttribute(String attribute)
           
 AttributeList getAttributes(String[] attributes)
           
 MBeanInfo getMBeanInfo()
           
 Object invoke(String actionName, Object[] params, String[] signature)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxIntrospectingMixin

public JmxIntrospectingMixin(Object target)
Method Detail

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
Specified by:
setAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException

getAttributes

public AttributeList getAttributes(String[] attributes)
Specified by:
getAttributes in interface DynamicMBean

setAttributes

public AttributeList setAttributes(AttributeList attributes)
Specified by:
setAttributes in interface DynamicMBean

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Specified by:
invoke in interface DynamicMBean
Throws:
MBeanException
ReflectionException

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.