Module org.elasticsearch.server
Class Annotations
java.lang.Object
org.elasticsearch.injection.guice.internal.Annotations
Annotation utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Annotation
findBindingAnnotation
(Errors errors, Member member, Annotation[] annotations) Returns the binding annotation onmember
, or null if there isn't one.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.
-
Constructor Details
-
Annotations
public Annotations()
-
-
Method Details
-
isRetainedAtRuntime
Returns true if the given annotation is retained at runtime. -
getKey
public static Key<?> getKey(TypeLiteral<?> type, Member member, Annotation[] annotations, Errors errors) throws ErrorsException Gets a key for the given type, member and annotations.- Throws:
ErrorsException
-
findBindingAnnotation
public static Annotation findBindingAnnotation(Errors errors, Member member, Annotation[] annotations) Returns the binding annotation onmember
, or null if there isn't one.
-