@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Bind
BoundFieldModule
to indicate that a field should be bound to its
value using Guice.BoundFieldModule
Modifier and Type | Optional Element and Description |
---|---|
boolean |
lazy
If true,
BoundFieldModule will delay retrieving the field's value until injection time
rather than eagerly fetching it at configure time. |
Class<?> |
to
If specified,
BoundFieldModule will bind the annotated field's value to this type,
rather than to the field's actual type. |
public abstract Class<?> to
BoundFieldModule
will bind the annotated field's value to this type,
rather than to the field's actual type.public abstract boolean lazy
BoundFieldModule
will delay retrieving the field's value until injection time
rather than eagerly fetching it at configure time.
This option is not supported with Provider valued fields.
Copyright © 2006-2014 Google, Inc.. All Rights Reserved.