public final class Sources extends Object
Modifier and Type | Method and Description |
---|---|
static Description |
describe(Object source,
String value)
Describes the given binding source with the given description.
|
static Description |
describe(String value)
Describes a new binding source with the given description.
|
static <T extends Annotation> |
getAnnotation(com.google.inject.Binding<?> binding,
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(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(Object source,
int value)
Prioritizes the given binding source with the given priority.
|
public static Hidden hide()
public static Hidden hide(Object source)
source
- The sourcepublic static Description describe(String value)
value
- The descriptionpublic static Description describe(Object source, String value)
source
- The sourcevalue
- The descriptionpublic static Priority prioritize(int value)
value
- The prioritypublic static Priority prioritize(Object source, int value)
source
- The sourcevalue
- The prioritypublic static <T extends Annotation> T getAnnotation(com.google.inject.Binding<?> binding, Class<T> annotationType)
binding
- The bindingannotationType
- The annotation typenull
if it doesn't existCopyright © 2019. All rights reserved.