public class IntrospectionCache extends Object
Introspection
objects. May be constructed
using either a local or shared (static) cache.Constructor and Description |
---|
IntrospectionCache()
Creates an instance that uses a local cache.
|
IntrospectionCache(boolean shared)
Creates an instance that will either use a local or shared (static) cache.
|
Modifier and Type | Method and Description |
---|---|
Introspection |
lookup(Class<?> klass)
Returns an
Introspection of the passed class. |
Introspection |
lookup(Class<?> klass,
boolean setAccessible)
Returns an
Introspection of the passed class, optionally calling
setAccessible(true) on all accessor methods. |
public IntrospectionCache()
public IntrospectionCache(boolean shared)
public Introspection lookup(Class<?> klass)
Introspection
of the passed class.ConversionError
- if unable to introspect the class.public Introspection lookup(Class<?> klass, boolean setAccessible)
Introspection
of the passed class, optionally calling
setAccessible(true)
on all accessor methods.
Note: because introspections are cached, the setAccessible
argument is ignored for the second and subsequent calls for the same class.
ConversionError
- if unable to introspect the class.