public abstract class IntrospectorBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private IntrospectorCache |
introspectorCache
The Introspector Cache
|
protected org.slf4j.Logger |
log
Class logger
|
Modifier | Constructor and Description |
---|---|
protected |
IntrospectorBase(org.slf4j.Logger log,
TypeConversionHandler conversionHandler)
C'tor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Field |
getField(java.lang.Class<?> c,
java.lang.String name)
Gets the field defined by
name . |
protected IntrospectorCache |
getIntrospectorCache()
Return the internal IntrospectorCache object.
|
java.lang.reflect.Method |
getMethod(java.lang.Class<?> c,
java.lang.String name,
java.lang.Object[] params)
Gets the method defined by
name and
params for the Class c . |
protected final org.slf4j.Logger log
private final IntrospectorCache introspectorCache
protected IntrospectorBase(org.slf4j.Logger log, TypeConversionHandler conversionHandler)
log
- loggerconversionHandler
- conversion handlerpublic java.lang.reflect.Method getMethod(java.lang.Class<?> c, java.lang.String name, java.lang.Object[] params) throws MethodMap.AmbiguousException
name
and
params
for the Class c
.c
- Class in which the method search is taking placename
- Name of the method being searched forparams
- An array of Objects (not Classes) that describe the
the parametersjava.lang.NullPointerException
- When the parameters passed in can not be used for introspection because null.MethodMap.AmbiguousException
- When the method map contains more than one match for the requested signature.public java.lang.reflect.Field getField(java.lang.Class<?> c, java.lang.String name) throws java.lang.IllegalArgumentException
name
.c
- Class in which the method search is taking placename
- Name of the field being searched forjava.lang.IllegalArgumentException
- When the parameters passed in can not be used for introspection.protected IntrospectorCache getIntrospectorCache()