|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.JavaIntrospector
public class JavaIntrospector
JavaIntrospector is a class used to find and obtain the accessor properties for Java objects and classes to allow Brahms actors to set/get Java property values.
This class uses Java's Introspector class to obtain BeanInfo describing the available properties, events, and methods of a Java class, but will also use Java's reflection to find other means to define accessors for a Java class or object's properties (methods or member variables). Because the JavaIntrospector caches JavaClassInfo classes for better performance, take care if you use it in an application that uses multiple class loaders. In general, when you destroy a ClassLoader that has been used to introspect classes, you should use the JavaIntrospector.flushCaches or JavaIntrospector.flushFromCaches method to flush all of the introspected classes out of the cache.
Introspector
,
BeanInfo
Constructor Summary | |
---|---|
JavaIntrospector()
|
Method Summary | |
---|---|
static void |
flushCaches()
Flush all of the JavaIntrospector's internal caches. |
static void |
flushFromCaches(java.lang.Class<?> clz)
Flush the JavaIntrospector's internal cached information for a given class. |
static JavaClassInfo |
getJavaClassInfo(java.lang.Class<?> clz)
Introspect on a Java Class and learn about all its properties, exposed methods, and events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaIntrospector()
Method Detail |
---|
public static JavaClassInfo getJavaClassInfo(java.lang.Class<?> clz) throws java.beans.IntrospectionException
clz
- the Java class to be analyzed
java.beans.IntrospectionException
- if an exception occurs during introspectionpublic static void flushCaches()
public static void flushFromCaches(java.lang.Class<?> clz)
clz
- Class object to be flushed.
java.lang.NullPointerException
- If the Class object is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |