public class JXPathIntrospector
extends java.lang.Object
JXPathBeanInfo
objects for Java classes.Modifier and Type | Field and Description |
---|---|
private static java.util.HashMap |
byClass |
private static java.util.HashMap |
byInterface |
Constructor and Description |
---|
JXPathIntrospector() |
Modifier and Type | Method and Description |
---|---|
private static JXPathBeanInfo |
findDynamicBeanInfo(java.lang.Class beanClass)
Find a dynamic bean info if available for any superclasses or
interfaces.
|
private static JXPathBeanInfo |
findInformant(java.lang.Class beanClass)
find a JXPathBeanInfo instance for the specified class.
|
static JXPathBeanInfo |
getBeanInfo(java.lang.Class beanClass)
Creates and registers a JXPathBeanInfo object for the supplied class.
|
private static java.lang.Object |
instantiate(java.lang.Class sibling,
java.lang.String className)
Try to create an instance of a named class.
|
static void |
registerAtomicClass(java.lang.Class beanClass)
Automatically creates and registers a JXPathBeanInfo object
for the specified class.
|
static void |
registerDynamicClass(java.lang.Class beanClass,
java.lang.Class dynamicPropertyHandlerClass)
Automatically creates and registers a
JXPathBeanInfo object
for the specified class. |
private static java.util.HashMap byClass
private static java.util.HashMap byInterface
public static void registerAtomicClass(java.lang.Class beanClass)
beanClass
- to registerpublic static void registerDynamicClass(java.lang.Class beanClass, java.lang.Class dynamicPropertyHandlerClass)
JXPathBeanInfo
object
for the specified class. That object returns true to
JXPathBeanInfo.isDynamic()
.beanClass
- to registerdynamicPropertyHandlerClass
- to handle beanClasspublic static JXPathBeanInfo getBeanInfo(java.lang.Class beanClass)
The process of creation of JXPathBeanInfo is as follows:
<beanClass>XBeanInfo
exists,
an instance of that class is allocated.
JXPathBasicBeanInfo
is allocated.
beanClass
- whose info to getprivate static JXPathBeanInfo findDynamicBeanInfo(java.lang.Class beanClass)
beanClass
- to search forprivate static JXPathBeanInfo findInformant(java.lang.Class beanClass)
beanClass
- for which to look for an info providerprivate static java.lang.Object instantiate(java.lang.Class sibling, java.lang.String className) throws java.lang.Exception
sibling
- ClassclassName
- to instantiatejava.lang.Exception
- if instantiation fails