Package org.springframework.beans.factory.annotation

Examples of org.springframework.beans.factory.annotation.Value


    return parameter.hasParameterAnnotation(Value.class);
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    Value annotation = parameter.getParameterAnnotation(Value.class);
    return new ExpressionValueNamedValueInfo(annotation);
  }
View Full Code Here


   */
  @Override
  public Object invoke(MethodInvocation invocation) throws Throwable {

    Method method = invocation.getMethod();
    Value annotation = method.getAnnotation(Value.class);

    if (annotation == null || !StringUtils.hasText(annotation.value())) {
      return delegate.invoke(invocation);
    }

    Expression expression = parser.parseExpression(annotation.value(), parserContext);
    return expression.getValue(evaluationContext);
  }
View Full Code Here

    return parameter.hasParameterAnnotation(Value.class);
  }

  @Override
  protected NamedValueInfo createNamedValueInfo(MethodParameter parameter) {
    Value annotation = parameter.getParameterAnnotation(Value.class);
    return new ExpressionValueNamedValueInfo(annotation);
  }
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.annotation.Value

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.