Annotation Type Inject

public @interface Inject

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

Alex Silva

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


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.

the property name to be injected