public class IntrospectorBase extends Object
Modifier and Type | Field and Description |
---|---|
protected Set |
cachedClassNames
Holds the qualified class names for the classes we hold in the
classMethodMaps hash.
|
protected Map |
classMethodMaps
Holds the method maps for the classes we know about, keyed by Class
object.
|
Constructor and Description |
---|
IntrospectorBase() |
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 Map classMethodMaps
protected Set cachedClassNames
public Method getMethod(Class c, String name, Object[] params) throws Exception
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
parametersException
- on any logical error.protected ClassMap createClassMap(Class c)
c
- class.ClassMap
protected void clearCache()
Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.