Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.