org.apache.camel.component.bean
Class MethodInfoCache

java.lang.Object
  extended by 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

Version:
$Revision: 747062 $

Constructor Summary
MethodInfoCache(CamelContext camelContext)
           
MethodInfoCache(CamelContext camelContext, int classCacheSize, int methodCacheSize)
           
MethodInfoCache(CamelContext camelContext, Map<Class,BeanInfo> classCache, Map<Method,MethodInfo> methodCache)
           
 
Method Summary
protected  BeanInfo createBeanInfo(Class<?> declaringClass)
           
protected static Map createLruCache(int size)
           
protected  MethodInfo createMethodInfo(Method method)
           
protected  BeanInfo getBeanInfo(Class<?> declaringClass)
           
 MethodInfo getMethodInfo(Method method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInfoCache

public MethodInfoCache(CamelContext camelContext)

MethodInfoCache

public MethodInfoCache(CamelContext camelContext,
                       int classCacheSize,
                       int methodCacheSize)

MethodInfoCache

public MethodInfoCache(CamelContext camelContext,
                       Map<Class,BeanInfo> classCache,
                       Map<Method,MethodInfo> methodCache)
Method Detail

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 Map createLruCache(int size)


Apache CAMEL