@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.inject.Injector |
injector |
protected Logger |
logger |
Constructor and Description |
---|
SeedAnnotationCache(com.google.inject.Injector injector) |
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
@Inject public SeedAnnotationCache(com.google.inject.Injector injector)
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-2012 jclouds. All Rights Reserved.