|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.inject.internal.Annotations
public class Annotations
Annotation utilities.
Constructor Summary | |
---|---|
Annotations()
|
Method Summary | |
---|---|
static void |
checkForMisplacedScopeAnnotations(Class<?> type,
Object source,
Errors errors)
Adds an error if there is a misplaced annotations on type . |
static Annotation |
findBindingAnnotation(Errors errors,
Member member,
Annotation[] annotations)
Returns the binding annotation on member , or null if there isn't one. |
static Class<? extends Annotation> |
findScopeAnnotation(Errors errors,
Annotation[] annotations)
Returns the scoping annotation, or null if there isn't one. |
static Class<? extends Annotation> |
findScopeAnnotation(Errors errors,
Class<?> implementation)
Returns the scope annotation on type , or null if none is specified. |
static Key<?> |
getKey(TypeLiteral<?> type,
Member member,
Annotation[] annotations,
Errors errors)
Gets a key for the given type, member and annotations. |
static boolean |
isRetainedAtRuntime(Class<? extends Annotation> annotationType)
Returns true if the given annotation is retained at runtime. |
static boolean |
isScopeAnnotation(Class<? extends Annotation> annotationType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Annotations()
Method Detail |
---|
public static boolean isRetainedAtRuntime(Class<? extends Annotation> annotationType)
public static Class<? extends Annotation> findScopeAnnotation(Errors errors, Class<?> implementation)
type
, or null if none is specified.
public static Class<? extends Annotation> findScopeAnnotation(Errors errors, Annotation[] annotations)
public static boolean isScopeAnnotation(Class<? extends Annotation> annotationType)
public static void checkForMisplacedScopeAnnotations(Class<?> type, Object source, Errors errors)
type
. Scoping
annotations are not allowed on abstract classes or interfaces.
public static Key<?> getKey(TypeLiteral<?> type, Member member, Annotation[] annotations, Errors errors) throws ErrorsException
ErrorsException
public static Annotation findBindingAnnotation(Errors errors, Member member, Annotation[] annotations)
member
, or null if there isn't one.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |