Package org.apache.struts2.inject
Annotation Interface Inject
Annotates members and parameters which should have their value[s] injected.
- Author:
- crazybob@google.com (Bob Lee)
-
Optional Element Summary
-
Element Details
-
value
String value- Returns:
- Dependency name. Defaults to
Container.DEFAULT_NAME
.
- Default:
- "default"
-
required
boolean required- Returns:
- Whether or not injection is required. Applicable only to methods and fields (not constructors or parameters).
- Default:
- true
-