public class Introspector extends Object
| Constructor and Description |
|---|
Introspector() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decapitalize(String name)
Decapitalizes a given string according to the rule:
If the first or only character is Upper Case, it is made Lower Case
UNLESS the second character is also Upper Case, when the String is
returned unchanged
|
static void |
flushCaches()
Flushes all
BeanInfo caches. |
static void |
flushFromCaches(Class<?> clazz)
Flushes the
BeanInfo caches of the specified bean class |
static PropertyDescriptor[] |
getPropertyDescriptors(Class<?> beanClass)
Gets the
BeanInfo object which contains the information of
the properties, events and methods of the specified bean class. |
public Introspector()
public static String decapitalize(String name)
name - -
the String to decapitalizepublic static void flushCaches()
BeanInfo caches.public static void flushFromCaches(Class<?> clazz)
BeanInfo caches of the specified bean classclazz - the specified bean classpublic static PropertyDescriptor[] getPropertyDescriptors(Class<?> beanClass)
BeanInfo object which contains the information of
the properties, events and methods of the specified bean class.
The Introspector will cache the BeanInfo
object. Subsequent calls to this method will be answered with the cached
data.
beanClass - the specified bean class.BeanInfo of the bean class.IntrospectionException