public final class Sources
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Sources() |
Modifier and Type | Method and Description |
---|---|
static Description |
describe(java.lang.Object source,
java.lang.String value)
Describes the given binding source with the given description.
|
static Description |
describe(java.lang.String value)
Describes a new binding source with the given description.
|
static <T extends java.lang.annotation.Annotation> |
getAnnotation(com.google.inject.Binding<?> binding,
java.lang.Class<T> annotationType)
Searches the binding's source and implementation for an annotation of the given type.
|
static Hidden |
hide()
Hides a new binding source from the bean locator.
|
static Hidden |
hide(java.lang.Object source)
Hides the given binding source from the bean locator.
|
static Priority |
prioritize(int value)
Prioritizes a new binding source with the given priority.
|
static Priority |
prioritize(java.lang.Object source,
int value)
Prioritizes the given binding source with the given priority.
|
public static Hidden hide()
public static Hidden hide(java.lang.Object source)
source
- The sourcepublic static Description describe(java.lang.String value)
value
- The descriptionpublic static Description describe(java.lang.Object source, java.lang.String value)
source
- The sourcevalue
- The descriptionpublic static Priority prioritize(int value)
value
- The prioritypublic static Priority prioritize(java.lang.Object source, int value)
source
- The sourcevalue
- The prioritypublic static <T extends java.lang.annotation.Annotation> T getAnnotation(com.google.inject.Binding<?> binding, java.lang.Class<T> annotationType)
binding
- The bindingannotationType
- The annotation typenull
if it doesn't exist