org.jclouds.rest.internal
Class SeedAnnotationCache
java.lang.Object
com.google.common.cache.CacheLoader<Class<?>,Boolean>
org.jclouds.rest.internal.SeedAnnotationCache
@Singleton
public class SeedAnnotationCache
- extends com.google.common.cache.CacheLoader<Class<?>,Boolean>
seeds the annotation cache located at
RestAnnotationProcessor.delegationMap
. Note this call is only
intended to be called once per RestContext
and avoids expensive
lookups on each call.
- Author:
- Adrian Cole
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader |
com.google.common.cache.CacheLoader.InvalidCacheLoadException |
Methods inherited from class com.google.common.cache.CacheLoader |
from, from, loadAll, reload |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
injector
protected final com.google.inject.Injector injector
SeedAnnotationCache
@Inject
public SeedAnnotationCache(com.google.inject.Injector injector)
load
public Boolean load(Class<?> declaring)
throws ExecutionException
- Specified by:
load
in class com.google.common.cache.CacheLoader<Class<?>,Boolean>
- Throws:
ExecutionException
isHttpMethod
public static boolean isHttpMethod(Method method)
Copyright © 2009-2012 jclouds. All Rights Reserved.