com.opensymphony.xwork2.inject
Annotation Type Inject


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

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

Author:
crazybob@google.com (Bob Lee)

Optional Element Summary
 boolean required
          Whether or not injection is required.
 String value
          Dependency name.
 

value

public abstract String value
Dependency name. Defaults to Container.DEFAULT_NAME.

Default:
"default"

required

public abstract boolean required
Whether or not injection is required. Applicable only to methods and fields (not constructors or parameters).

Default:
true


Copyright © 2009 OpenSymphony. All Rights Reserved.