Class MethodInfoCache

java.lang.Object
org.apache.camel.component.bean.MethodInfoCache

public class MethodInfoCache extends Object
Represents a cache of MethodInfo objects to avoid the expense of introspection for each invocation of a method via a proxy.
  • Constructor Details

    • MethodInfoCache

      public MethodInfoCache(org.apache.camel.CamelContext camelContext)
    • MethodInfoCache

      public MethodInfoCache(org.apache.camel.CamelContext camelContext, int classCacheSize, int methodCacheSize)
    • MethodInfoCache

      public MethodInfoCache(org.apache.camel.CamelContext camelContext, Map<Class<?>,BeanInfo> classCache, Map<Method,MethodInfo> methodCache)
  • Method Details

    • getMethodInfo

      public MethodInfo getMethodInfo(Method method)
    • createMethodInfo

      protected MethodInfo createMethodInfo(Method method)
    • getBeanInfo

      protected BeanInfo getBeanInfo(Class<?> declaringClass)
    • createBeanInfo

      protected BeanInfo createBeanInfo(Class<?> declaringClass)
    • createLruCache

      protected static <K, V> Map<K,V> createLruCache(int size)