org.springframework.beans.factory.annotation
Annotation Type Value


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

Annotation at the field or method/constructor parameter level that indicates a default value expression for the affected argument.

This is typically used for assigning default field values with "#{systemProperties.myProp}" style expressions.

Since:
3.0
Author:
Juergen Hoeller
See Also:
BeanExpressionResolver, AutowireCandidateResolver.getSuggestedValue(org.springframework.beans.factory.config.DependencyDescriptor)

Required Element Summary
 java.lang.String value
          The actual value expression: e.g.
 

Element Detail

value

public abstract java.lang.String value
The actual value expression: e.g. "#{systemProperties.myProp}".