Whole document tree
java.beans
|
Field Summary | |
static int |
IGNORE_ALL_BEANINFO
|
static int |
IGNORE_IMMEDIATE_BEANINFO
|
static int |
USE_ALL_BEANINFO
|
Method Summary | |
static String |
decapitalize(String name)
Utility method to take a string and convert it to normal Java variable name capitalization. |
static void |
flushCaches()
Flush all of the Introspector's internal caches. |
static void |
flushFromCaches(Class clz)
Flush the Introspector's internal cached information for a given class. |
static BeanInfo |
getBeanInfo(Class beanClass)
Introspect on a Java bean and learn about all its properties, exposed methods, and events. |
static BeanInfo |
getBeanInfo(Class beanClass,
Class stopClass)
Introspect on a Java bean and learn all about its properties, exposed methods, below a given "stop" point. |
static BeanInfo |
getBeanInfo(Class beanClass,
int flags)
Introspect on a Java bean and learn about all its properties, exposed methods, and events, subject to some control flags. |
static String[] |
getBeanInfoSearchPath()
Gets the list of package names that will be used for finding BeanInfo classes. |
static void |
setBeanInfoSearchPath(String[] path)
Change the list of package names that will be used for finding BeanInfo classes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int USE_ALL_BEANINFO
public static final int IGNORE_IMMEDIATE_BEANINFO
public static final int IGNORE_ALL_BEANINFO
Method Detail |
public static BeanInfo getBeanInfo(Class beanClass) throws IntrospectionException
beanClass
- The bean class to be analyzed.IntrospectionException
- if an exception occurs during
introspection.public static BeanInfo getBeanInfo(Class beanClass, int flags) throws IntrospectionException
beanClass
- The bean class to be analyzed.flags
- Flags to control the introspection.
If flags == USE_ALL_BEANINFO then we use all of the BeanInfo
classes we can discover.
If flags == IGNORE_IMMEDIATE_BEANINFO then we ignore any
BeanInfo associated with the specified beanClass.
If flags == IGNORE_ALL_BEANINFO then we ignore all BeanInfo
associated with the specified beanClass or any of its
parent classes.IntrospectionException
- if an exception occurs during
introspection.public static BeanInfo getBeanInfo(Class beanClass, Class stopClass) throws IntrospectionException
bean
- The bean class to be analyzed.stopClass
- The baseclass at which to stop the analysis. Any
methods/properties/events in the stopClass or in its baseclasses
will be ignored in the analysis.IntrospectionException
- if an exception occurs during
introspection.public static String decapitalize(String name)
Thus "FooBah" becomes "fooBah" and "X" becomes "x", but "URL" stays as "URL".
name
- The string to be decapitalized.public static String[] getBeanInfoSearchPath()
This is initially set to {"sun.beans.infos"}.
public static void setBeanInfoSearchPath(String[] path)
First, if there is a security manager, its checkPropertiesAccess
method is called. This could result in a SecurityException.
path
- Array of package names.SecurityException
- if a security manager exists and its
checkPropertiesAccess
method doesn't allow setting
of system properties.SecurityManager.checkPropertiesAccess()
public static void flushCaches()
public static void flushFromCaches(Class clz)
clz
- Class object to be flushed.
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.