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

## org.pentaho.di.core.annotations
Annotation Type Inject

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

Allows for properties to be dynamically injected into classes during runtime. Both methods and fields can be annotated.

Author:
  Alex Silva

Optional Element Summary
`String` | `property` The name of the property to be injected.

### property

    public abstract String property

  The name of the property to be injected. Default values:
  1. Fields: The name of the annotated field. For instance, annotating a field named "callerId" with @Inject has the same effect as annotating this field with @Inject("callerId")
  2. Methods:The name of the property being set by the method, as defined by `Introspector.decapitalize` and the Java Beans API.

  Returns:
    the property name to be injected
  Default:
    ""

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