org.pm4j.core.pm.annotation
Annotation Type PmInject


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

Marks a field to be injected by the PM framework.

TODO: define and describe protocol and scope specifications.

Author:
olaf boede

Optional Element Summary
 boolean nullAllowed
          Defines if null is an accepted value for the injected field.
 java.lang.String value
          A PM-EL expression that provides the content for the annotated field.
If the name is not specified, the name of the annotated field will be used to provide the PM-EL expression.
 

value

public abstract java.lang.String value
A PM-EL expression that provides the content for the annotated field.
If the name is not specified, the name of the annotated field will be used to provide the PM-EL expression.

Attention: In difference to PM-EL expressions used in PmObject#findPmProperty(String), this expression does not address the field itself. This allows to use injected fields that uses the same name as a variable that provides the injection content.

Default:
""

nullAllowed

public abstract boolean nullAllowed
Defines if null is an accepted value for the injected field.

Default value: false.

Default:
false