Package org.apache.camel.component.bean
Class MethodInfoCache
- java.lang.Object
-
- org.apache.camel.component.bean.MethodInfoCache
-
public class MethodInfoCache extends Object
Represents a cache ofMethodInfo
objects to avoid the expense of introspection for each invocation of a method via a proxy.
-
-
Constructor Summary
Constructors Constructor Description MethodInfoCache(org.apache.camel.CamelContext camelContext)
MethodInfoCache(org.apache.camel.CamelContext camelContext, int classCacheSize, int methodCacheSize)
MethodInfoCache(org.apache.camel.CamelContext camelContext, Map<Class<?>,BeanInfo> classCache, Map<Method,MethodInfo> methodCache)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanInfo
createBeanInfo(Class<?> declaringClass)
protected static <K,V>
Map<K,V>createLruCache(int size)
protected MethodInfo
createMethodInfo(Method method)
protected BeanInfo
getBeanInfo(Class<?> declaringClass)
MethodInfo
getMethodInfo(Method method)
-
-
-
Method Detail
-
getMethodInfo
public MethodInfo getMethodInfo(Method method)
-
createMethodInfo
protected MethodInfo createMethodInfo(Method method)
-
createLruCache
protected static <K,V> Map<K,V> createLruCache(int size)
-
-