APIdia Launch Partner
Top Description Constructors Methods
com.sun.jmx.mbeanserver

pack-priv Class JavaBeansAccessor

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, .Method, jdk.internal.access.JavaBeansAccess, .SharedSecrets

A centralized place for gaining access to java.beans related functionality - if available.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static String[]

Returns:

The value attribute of the @ConstructorProperties annotation or null if the constructor is not annotated by this annotation or the annotation is not accessible.
getConstructorPropertiesValue
(Constructor<?>
The constructor to extract the annotation value from
ctr
)

Return the value attribute of the associated @ConstructorProperties annotation if that is present.

private static JavaBeansAccess
pack-priv static Method

Returns:

The resolved property getter name or null
getReadMethod
(Class<?>
The JavaBeans class
clazz
,
String
The property name
property
)

Returns the getter method for a property of the given name

pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JavaBeansAccessorback to summary
pack-priv JavaBeansAccessor()

Method Detail

getConstructorPropertiesValueback to summary
pack-priv static String[] getConstructorPropertiesValue(Constructor<?> ctr)

Return the value attribute of the associated @ConstructorProperties annotation if that is present.

Parameters
ctr:Constructor<?>

The constructor to extract the annotation value from

Returns:String[]

The value attribute of the @ConstructorProperties annotation or null if the constructor is not annotated by this annotation or the annotation is not accessible.

getJavaBeansAccessback to summary
private static JavaBeansAccess getJavaBeansAccess()
getReadMethodback to summary
pack-priv static Method getReadMethod(Class<?> clazz, String property) throws Exception

Returns the getter method for a property of the given name

Parameters
clazz:Class<?>

The JavaBeans class

property:String

The property name

Returns:Method

The resolved property getter name or null

isAvailableback to summary
pack-priv static boolean isAvailable()