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
- Author:
- Adrian Cole
Methods inherited from class com.google.common.cache.CacheLoader |
from, from |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
constants
protected final com.google.common.collect.Multimap<String,String> constants
injector
protected final com.google.inject.Injector injector
SeedAnnotationCache
@Inject
public SeedAnnotationCache(com.google.inject.Injector injector,
@Named(value="CONSTANTS")
com.google.common.collect.Multimap<String,String> constants)
bindConstant
public void bindConstant(Method method)
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)
isConstantDeclaration
public static boolean isConstantDeclaration(Method method)
Copyright © 2009-2011 jclouds. All Rights Reserved.