TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.tptp.monitoring.instrumentation.internal.jmx.modelmbean
Class MBeanInfoReflectiveBuilder

java.lang.Object
  extended byorg.eclipse.tptp.monitoring.instrumentation.internal.jmx.modelmbean.MBeanInfoReflectiveBuilder

public class MBeanInfoReflectiveBuilder
extends java.lang.Object

Creates a ModelMBean from a given Object. Builds the metadata needed by the ModelMBean.

Since:
TPTP 4.4

Constructor Summary
MBeanInfoReflectiveBuilder()
           
 
Method Summary
 javax.management.modelmbean.ModelMBeanInfo createMBeanInfo(java.lang.Object object)
          Creates an instance of ModelMBeanInfo.
 boolean isCasing()
          Return true if first character should be lower cased.
 boolean isExposeDeclaredClassOnly()
          Returns true to expose only declared methods.
 void setCasing(boolean caze)
          Sets the casing for the Model mbean attribute
 void setExposeDeclaredClassOnly(boolean declaring)
          Sets the exposure to the declared class only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanInfoReflectiveBuilder

public MBeanInfoReflectiveBuilder()
Method Detail

createMBeanInfo

public javax.management.modelmbean.ModelMBeanInfo createMBeanInfo(java.lang.Object object)
                                                           throws javax.management.JMException,
                                                                  java.beans.IntrospectionException
Creates an instance of ModelMBeanInfo.

Returns:
A ModelMBeanInfo.
Throws:
javax.management.JMException - error occurs creating the model info
java.beans.IntrospectionException - bean intropesction problem

setCasing

public void setCasing(boolean caze)
Sets the casing for the Model mbean attribute

Parameters:
caze - true to lower case first character.

isCasing

public boolean isCasing()
Return true if first character should be lower cased.

Returns:
true if first character should be lower cased; otherwise false

setExposeDeclaredClassOnly

public void setExposeDeclaredClassOnly(boolean declaring)
Sets the exposure to the declared class only. Set to true if you only want to see attributes and operations of the declared class. False will show all methods from any parent class.

Parameters:
declaring - true declared class only; false show everything

isExposeDeclaredClassOnly

public boolean isExposeDeclaredClassOnly()
Returns true to expose only declared methods. False expose everything

Returns:
true expose only declared methods; otherwise false

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification