public class IntrospectorBase extends Object
Modifier and Type | Field and Description |
---|---|
protected Map |
classMethodMaps
Holds the method maps for the classes we know about, keyed by Class
object.
|
Constructor and Description |
---|
IntrospectorBase(org.apache.commons.logging.Log rlog) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCache()
Clears the classmap and classname caches.
|
protected ClassMap |
createClassMap(Class c)
Creates a class map for specific class and registers it in the cache.
|
Method |
getMethod(Class c,
String name,
Object[] params)
Gets the method defined by
name and params
for the Class c . |
protected final Map classMethodMaps
public Method getMethod(Class c, String name, Object[] params) throws IllegalArgumentException, 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
parametersIllegalArgumentException
- When the parameters passed in can not be used for introspection.MethodMap.AmbiguousException
- When the method map contains more than one match for the requested signature.protected ClassMap createClassMap(Class c)
c
- class.ClassMap
protected void clearCache()
Copyright © 2014 The Apache Software Foundation. All rights reserved.