public class BeanReflectionIntrospector extends java.lang.Object implements IBeanIntrospector
Modifier and Type | Field and Description |
---|---|
protected LRU<Tuple3<java.lang.Class<?>,java.lang.Boolean,java.lang.Boolean>,java.util.Map<java.lang.String,BeanProperty>> |
beaninfos
The cache for saving time for multiple lookups.
|
Constructor and Description |
---|
BeanReflectionIntrospector()
Create a new introspector.
|
BeanReflectionIntrospector(int lrusize)
Create a new introspector.
|
Modifier and Type | Method and Description |
---|---|
protected BeanProperty |
createBeanProperty(java.lang.String name,
java.lang.Class<?> type,
java.lang.reflect.Method getter,
java.lang.reflect.Method setter,
java.lang.Class<?> settertype,
java.lang.reflect.Type generictype)
Creates a bean property based on getter/setter.
|
protected BeanProperty |
createBeanProperty(java.lang.String name,
java.lang.reflect.Field field,
boolean anonclass)
Creates a bean property based on a field.
|
java.util.Map<java.lang.String,BeanProperty> |
getBeanProperties(java.lang.Class<?> clazz,
boolean includemethods,
boolean includefields)
Get the bean properties for a specific clazz.
|
protected LRU<Tuple3<java.lang.Class<?>,java.lang.Boolean,java.lang.Boolean>,java.util.Map<java.lang.String,BeanProperty>> beaninfos
public BeanReflectionIntrospector()
public BeanReflectionIntrospector(int lrusize)
public java.util.Map<java.lang.String,BeanProperty> getBeanProperties(java.lang.Class<?> clazz, boolean includemethods, boolean includefields)
getBeanProperties
in interface IBeanIntrospector
clazz
- The class to inspect.protected BeanProperty createBeanProperty(java.lang.String name, java.lang.Class<?> type, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.Class<?> settertype, java.lang.reflect.Type generictype)
name
- Property nametype
- Property type.getter
- The getter method.setter
- The setter method.settertype
- The type used by the setter.protected BeanProperty createBeanProperty(java.lang.String name, java.lang.reflect.Field field, boolean anonclass)
name
- Property namefield
- The field.