public enum RequestKind extends java.lang.Enum<RequestKind>
| Enum Constant and Description |
|---|
FUTURE
A request for a
ListenableFuture. |
INSTANCE
A default request for an instance.
|
LAZY
A request for a
Lazy. |
MEMBERS_INJECTION
A request for a members injection.
|
PRODUCED
A request for a
Produced. |
PRODUCER
A request for a
Producer. |
PROVIDER
A request for a
Provider. |
PROVIDER_OF_LAZY
A request for a
Provider of a Lazy. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(Key key)
Returns a string that represents requests of this kind for a key.
|
static RequestKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestKind INSTANCE
FooTypepublic static final RequestKind PROVIDER
Provider. E.g.: Provider<FooType>public static final RequestKind LAZY
Lazy. E.g.: Lazy<FooType>public static final RequestKind PROVIDER_OF_LAZY
public static final RequestKind MEMBERS_INJECTION
void injectMembers(FooType);. Can only be
requested by component interfaces.public static final RequestKind PRODUCER
Producer. E.g.: Producer<FooType>public static final RequestKind PRODUCED
Produced. E.g.: Produced<FooType>public static final RequestKind FUTURE
ListenableFuture. E.g.: ListenableFuture<FooType>. These can only be requested by component interfaces.public static RequestKind[] values()
for (RequestKind c : RequestKind.values()) System.out.println(c);
public static RequestKind 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 nullpublic java.lang.String format(Key key)