enum QualifyingStrategy extends java.lang.Enum<QualifyingStrategy>
Bindings against requirement Keys.| Enum Constant and Description |
|---|
MARKED |
MARKED_WITH_ATTRIBUTES |
NAMED |
NAMED_WITH_ATTRIBUTES |
UNRESTRICTED |
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.annotation.Annotation |
BLANK_QUALIFIER |
(package private) static java.lang.annotation.Annotation |
DEFAULT_QUALIFIER |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract java.lang.annotation.Annotation |
qualifies(com.google.inject.Key<?> requirement,
com.google.inject.Binding<?> binding)
Attempts to qualify the given
Binding against the requirement Key. |
(package private) static java.lang.annotation.Annotation |
qualify(com.google.inject.Key<?> key)
Computes a canonical
Qualifier annotation for the given binding Key. |
(package private) static QualifyingStrategy |
selectFor(com.google.inject.Key<?> key)
Selects the appropriate qualifying strategy for the given requirement
Key. |
static QualifyingStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QualifyingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QualifyingStrategy UNRESTRICTED
public static final QualifyingStrategy NAMED
public static final QualifyingStrategy NAMED_WITH_ATTRIBUTES
public static final QualifyingStrategy MARKED
public static final QualifyingStrategy MARKED_WITH_ATTRIBUTES
static final java.lang.annotation.Annotation DEFAULT_QUALIFIER
static final java.lang.annotation.Annotation BLANK_QUALIFIER
public static QualifyingStrategy[] values()
for (QualifyingStrategy c : QualifyingStrategy.values()) System.out.println(c);
public static QualifyingStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullabstract java.lang.annotation.Annotation qualifies(com.google.inject.Key<?> requirement,
com.google.inject.Binding<?> binding)
Binding against the requirement Key.requirement - The requirement keybinding - The binding to qualifynullstatic final QualifyingStrategy selectFor(com.google.inject.Key<?> key)
Key.key - The requirement keystatic final java.lang.annotation.Annotation qualify(com.google.inject.Key<?> key)
Qualifier annotation for the given binding Key.key - The key to qualify