Package org.springframework.config.java.annotation

Examples of org.springframework.config.java.annotation.ExternalValue


    super(ExternalValue.class);
    this.valueSource = null;
  }

  public Object processMethod(Method m) throws ValueResolutionException {
    ExternalValue ev = m.getAnnotation(ExternalValue.class);
    Assert.notNull(ev, "method must be annotated with @ExternalValue");

    String name = ev.value();
    if ("".equals(name)) {
      name = m.getName();
      // Strip property name if needed
      if (name.startsWith("get")) {
        name = Character.toLowerCase(name.charAt(3)) + name.substring(4);
View Full Code Here

TOP

Related Classes of org.springframework.config.java.annotation.ExternalValue

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.