org.qi4j.api.injection.scope
Annotation Type State


@Retention(value=RUNTIME)
@Target(value={FIELD,PARAMETER})
@Documented
@InjectionScope
public @interface State

Annotation to denote the injection of a property, association or StateHolder.


 @State Property propertyName;
 @State Association associationName;
 @State ManyAssociation manyAssociationName;
 @State StateHolder state;
 @State AssociationStateHolder associationState;
 


Optional Element Summary
 java.lang.String value
          Name of the property or association.
 

value

public abstract java.lang.String value
Name of the property or association. If not set then name will be name of field.

Returns:
the name
Default:
""