public enum BindingKind extends java.lang.Enum<BindingKind>
Binding
s that can exist in a binding graph.Enum Constant and Description |
---|
BOUND_INSTANCE
A binding for a
BindsInstance -annotated builder method. |
COMPONENT
An implicit binding for a
Component - or ProductionComponent -annotated type. |
COMPONENT_DEPENDENCY
A binding for an instance of a component's dependency.
|
COMPONENT_PRODUCTION
A binding for a production method on a production component's ProductionComponent.dependencies() dependency} that returns a
ListenableFuture or FluentFuture . |
COMPONENT_PROVISION
A binding for a provision method on a component's dependency.
|
DELEGATE
A binding for
Binds -annotated method that that delegates from requests for one
key to another. |
INJECTION
A binding for an
Inject -annotated constructor. |
MEMBERS_INJECTION
A binding for a members injection method on a component.
|
MEMBERS_INJECTOR
A binding for a
MembersInjector of a type. |
MULTIBOUND_MAP
A synthetic binding for a multibound map that depends on the individual multibinding
PROVISION or PRODUCTION contributions. |
MULTIBOUND_SET
A synthetic binding for a multibound set that depends on individual multibinding
PROVISION or PRODUCTION contributions. |
OPTIONAL
|
PRODUCTION
A binding for a
Produces -annotated method. |
PROVISION
A binding for a
Provides -annotated method. |
SUBCOMPONENT_BUILDER
A binding for a subcomponent builder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMultibinding()
Returns
true if this is a kind of multibinding (not a contribution to a multibinding,
but the multibinding itself). |
static BindingKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BindingKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BindingKind INJECTION
Inject
-annotated constructor.public static final BindingKind PROVISION
Provides
-annotated method.public static final BindingKind COMPONENT
Component
- or ProductionComponent
-annotated type.public static final BindingKind COMPONENT_PROVISION
public static final BindingKind COMPONENT_DEPENDENCY
public static final BindingKind MEMBERS_INJECTOR
MembersInjector
of a type.public static final BindingKind SUBCOMPONENT_BUILDER
public static final BindingKind BOUND_INSTANCE
BindsInstance
-annotated builder method.public static final BindingKind PRODUCTION
Produces
-annotated method.public static final BindingKind COMPONENT_PRODUCTION
ListenableFuture
or FluentFuture
. Methods on production component dependencies
that don't return a future are considered component provision
bindings.public static final BindingKind MULTIBOUND_SET
PROVISION
or PRODUCTION
contributions.public static final BindingKind MULTIBOUND_MAP
PROVISION
or PRODUCTION
contributions.public static final BindingKind OPTIONAL
Optional
of a type or a Provider
, Lazy
, or Provider
of Lazy
of a type. Generated by a BindsOptionalOf
declaration.public static final BindingKind DELEGATE
Binds
-annotated method that that delegates from requests for one
key to another.public static final BindingKind MEMBERS_INJECTION
public static BindingKind[] values()
for (BindingKind c : BindingKind.values()) System.out.println(c);
public static BindingKind 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 boolean isMultibinding()
true
if this is a kind of multibinding (not a contribution to a multibinding,
but the multibinding itself).