Savarese.Org

org.savarese.unicorn.util
Class Beans

java.lang.Object
  extended by org.savarese.unicorn.util.Beans

public final class Beans
extends java.lang.Object

A singleton class that stores convenience methods for converting JavaBean information types to MBean information types.


Method Summary
static javax.management.MBeanInfo beanInfoToMBeanInfo(java.beans.BeanInfo info)
          Converts a BeanInfo instance into an MBeanInfo instance.
static javax.management.MBeanConstructorInfo constructorToMBeanConstructorInfo(java.lang.reflect.Constructor c)
          Converts a Constructor instance into an MBeanConstructorInfo instance.
static javax.management.MBeanOperationInfo methodDescriptorToMBeanOperationInfo(java.beans.MethodDescriptor md)
          Converts a MethodDescriptor instance into an MBeanOperationInfo instance.
static javax.management.MBeanAttributeInfo propertyDescriptorToMBeanAttributeInfo(java.beans.PropertyDescriptor pd)
          Converts a PropertyDescriptor instance into an MBeanAttributeInfo instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

beanInfoToMBeanInfo

public static final javax.management.MBeanInfo beanInfoToMBeanInfo(java.beans.BeanInfo info)
                                                            throws javax.management.IntrospectionException
Converts a BeanInfo instance into an MBeanInfo instance.

Parameters:
info - The BeanInfo instance to convert.
Returns:
The MBeanInfo representation of the BeanInfo.
Throws:
javax.management.IntrospectionException - Should an unexpected condition arise during the conversion.

propertyDescriptorToMBeanAttributeInfo

public static final javax.management.MBeanAttributeInfo propertyDescriptorToMBeanAttributeInfo(java.beans.PropertyDescriptor pd)
                                                                                        throws javax.management.IntrospectionException
Converts a PropertyDescriptor instance into an MBeanAttributeInfo instance.

Parameters:
pd - The PropertyDescriptor instance to convert.
Returns:
The MBeanAttributeInfo representation of the PropertyDescriptor.
Throws:
javax.management.IntrospectionException - Should an unexpected condition arise during the conversion.

methodDescriptorToMBeanOperationInfo

public static final javax.management.MBeanOperationInfo methodDescriptorToMBeanOperationInfo(java.beans.MethodDescriptor md)
Converts a MethodDescriptor instance into an MBeanOperationInfo instance.

Parameters:
md - The MethodDescriptor instance to convert.
Returns:
The MBeanOperationInfo representation of the MethodDescriptor.

constructorToMBeanConstructorInfo

public static final javax.management.MBeanConstructorInfo constructorToMBeanConstructorInfo(java.lang.reflect.Constructor c)
Converts a Constructor instance into an MBeanConstructorInfo instance.

Parameters:
c - The Constructor instance to convert.
Returns:
The MBeanConstructorInfo representation of the Constructor.

Savarese.Org

Copyright © 2006 Daniel F. Savarese. All Rights Reserved.