|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,CONSTRUCTOR,FIELD}) @Retention(value=RUNTIME) public @interface Inject
Annotates members of your implementation class (constructors, methods and fields) into which the container should inject references or values. The Container fulfills injection requests for:
@Inject
or must have a
constructor taking no parameters. The container then proceeds to perform
method and field injections.
Container.injectMembers(java.lang.Object)
.
In this case any injectable constructor is, of course, ignored.
Module
has
specifically requested static injection for, using
Binder.requestStaticInjection(java.lang.Class>...)
.
Optional Element Summary | |
---|---|
boolean |
optional
If true, and the appropriate binding is not present in the container, the container will skip injection of this method or field rather than produce an error. |
public abstract boolean optional
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |