org.jclouds.rest.internal
Class SeedAnnotationCache
java.lang.Object
org.jclouds.rest.internal.SeedAnnotationCache
- All Implemented Interfaces:
- com.google.common.base.Function<Class<?>,Boolean>
@Singleton
public class SeedAnnotationCache
- extends Object
- implements com.google.common.base.Function<Class<?>,Boolean>
seeds the annotation cache
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
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)
apply
public Boolean apply(Class<?> declaring)
- Specified by:
apply
in interface com.google.common.base.Function<Class<?>,Boolean>
isHttpMethod
public static boolean isHttpMethod(Method method)
isConstantDeclaration
public static boolean isConstantDeclaration(Method method)
Copyright © 2009-2011 jclouds. All Rights Reserved.