public final class

Sources

extends Object
java.lang.Object
   ↳ org.eclipse.sisu.inject.Sources

Class Overview

Utility methods for dealing with annotated sources.

Summary

Public Methods
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> T getAnnotation(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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Description describe (Object source, String value)

Describes the given binding source with the given description.

Parameters
source The source
value The description
Returns
  • Described source

public static Description describe (String value)

Describes a new binding source with the given description.

Parameters
value The description
Returns
  • Described source

public static T getAnnotation (Binding<?> binding, Class<T> annotationType)

Searches the binding's source and implementation for an annotation of the given type.

Parameters
binding The binding
annotationType The annotation type
Returns
  • Annotation instance; null if it doesn't exist

public static Hidden hide ()

Hides a new binding source from the bean locator.

Returns
  • Hidden source

public static Hidden hide (Object source)

Hides the given binding source from the bean locator.

Parameters
source The source
Returns
  • Hidden source

public static Priority prioritize (int value)

Prioritizes a new binding source with the given priority.

Parameters
value The priority
Returns
  • Prioritized source

public static Priority prioritize (Object source, int value)

Prioritizes the given binding source with the given priority.

Parameters
source The source
value The priority
Returns
  • Prioritized source