public class ClassMap extends Object
Method
objects by a concatenation of the
method name and the names of classes that make up the parameters.Constructor and Description |
---|
ClassMap(Class<?> clazz,
org.slf4j.Logger log)
Standard constructor
|
ClassMap(Class<?> clazz,
org.slf4j.Logger log,
TypeConversionHandler conversionHandler)
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
Method |
findMethod(String name,
Object[] params)
Find a Method using the method name and parameter objects.
|
Class<?> |
getCachedClass()
Returns the class object whose methods are cached by this map.
|
public ClassMap(Class<?> clazz, org.slf4j.Logger log)
clazz
- The class for which this ClassMap gets constructed.log
- loggerpublic ClassMap(Class<?> clazz, org.slf4j.Logger log, TypeConversionHandler conversionHandler)
clazz
- The class for which this ClassMap gets constructed.log
- loggerconversionHandler
- conversion handlerpublic Class<?> getCachedClass()
public Method findMethod(String name, Object[] params) throws MethodMap.AmbiguousException
name
- The method name to look up.params
- An array of parameters for the method.MethodMap.AmbiguousException
- When more than one method is a match for the parameters.Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.