com.google.inject
Annotation Type Inject


@Target(value={METHOD,CONSTRUCTOR,FIELD})
@Retention(value=RUNTIME)
public @interface Inject

Annotates members which should have their value[s] injected.

Author:
crazybob@google.com (Bob Lee)

Optional Element Summary
 boolean optional
          Indicates whether injection at the target is optional or not.
 

optional

public abstract boolean optional
Indicates whether injection at the target is optional or not. The default is false. Can be used on methods and fields. If a method has multiple parameters and one parameter binding is missing, the method won't be invoked at all. Not applicable to constructors or other annotations.

Default:
false