Package org.apache.camel.component.bean
Class MethodInfoCache
java.lang.Object
org.apache.camel.component.bean.MethodInfoCache
Represents a cache of
MethodInfo
objects to avoid the expense of introspection for each invocation of a
method via a proxy.-
Constructor Summary
ConstructorDescriptionMethodInfoCache
(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
Modifier and TypeMethodDescriptionprotected BeanInfo
createBeanInfo
(Class<?> declaringClass) protected static <K,
V> Map <K, V> createLruCache
(int size) protected MethodInfo
createMethodInfo
(Method method) protected BeanInfo
getBeanInfo
(Class<?> declaringClass) getMethodInfo
(Method method)
-
Constructor Details
-
MethodInfoCache
public MethodInfoCache(org.apache.camel.CamelContext camelContext) -
MethodInfoCache
public MethodInfoCache(org.apache.camel.CamelContext camelContext, int classCacheSize, int methodCacheSize) -
MethodInfoCache
-
-
Method Details
-
getMethodInfo
-
createMethodInfo
-
getBeanInfo
-
createBeanInfo
-
createLruCache
-