@Singleton public class SeedAnnotationCache extends com.google.common.cache.CacheLoader<Class<?>,Boolean>
RestAnnotationProcessor.delegationMap
. Note this call is only
intended to be called once per RestContext
and avoids expensive
lookups on each call.Modifier and Type | Field and Description |
---|---|
protected com.google.common.cache.Cache<RestAnnotationProcessor.MethodKey,Method> |
delegationMap |
protected com.google.inject.Injector |
injector |
protected Logger |
logger |
Constructor and Description |
---|
SeedAnnotationCache(com.google.inject.Injector injector,
com.google.common.cache.Cache<RestAnnotationProcessor.MethodKey,Method> delegationMap) |
Modifier and Type | Method and Description |
---|---|
static boolean |
isHttpMethod(Method method) |
Boolean |
load(Class<?> declaring) |
protected Logger logger
protected final com.google.inject.Injector injector
protected final com.google.common.cache.Cache<RestAnnotationProcessor.MethodKey,Method> delegationMap
@Inject public SeedAnnotationCache(com.google.inject.Injector injector, com.google.common.cache.Cache<RestAnnotationProcessor.MethodKey,Method> delegationMap)
public Boolean load(Class<?> declaring) throws ExecutionException
load
in class com.google.common.cache.CacheLoader<Class<?>,Boolean>
ExecutionException
public static boolean isHttpMethod(Method method)
Copyright © 2009-2013 jclouds. All Rights Reserved.