final class Implementations
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Implementations.ClassFinder
BindingTargetVisitor that attempts to find the implementations behind bindings. |
Modifier and Type | Field and Description |
---|---|
private static boolean |
HAS_JSR250_PRIORITY |
Modifier | Constructor and Description |
---|---|
private |
Implementations() |
Modifier and Type | Method and Description |
---|---|
private static <T extends java.lang.annotation.Annotation> |
adaptJsr250(com.google.inject.Binding<?> binding,
java.lang.Class<?> clazz) |
private static <T extends java.lang.annotation.Annotation> |
adaptLegacy(com.google.inject.Binding<?> binding,
java.lang.Class<?> clazz) |
static java.lang.Class<?> |
find(com.google.inject.Binding<?> binding)
Attempts to find the implementation behind the given
Binding . |
static <T extends java.lang.annotation.Annotation> |
getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
Attempts to find an annotation on the implementation behind the given
Binding . |
public static java.lang.Class<?> find(com.google.inject.Binding<?> binding)
Binding
.binding
- The bindingnull
if it couldn't be foundpublic static <T extends java.lang.annotation.Annotation> T getAnnotation(com.google.inject.Binding<?> binding, java.lang.Class<T> annotationType)
Binding
.binding
- The bindingannotationType
- The annotation typenull
if it couldn't be foundprivate static <T extends java.lang.annotation.Annotation> T adaptJsr250(com.google.inject.Binding<?> binding, java.lang.Class<?> clazz)
private static <T extends java.lang.annotation.Annotation> T adaptLegacy(com.google.inject.Binding<?> binding, java.lang.Class<?> clazz)