Package org.milyn.scribe.annotation

Examples of org.milyn.scribe.annotation.Param


      for(final Annotation annotation : parameterAnnotations[i]) {

        if(Param.class.equals(annotation.annotationType())) {
          namedParameters = true;

          final Param param = (Param) annotation;

          final String name = param.value().trim();

          if(name.length() == 0) {
            throw new RuntimeException("Illegal empty parameter value encounterd on parameter " + i
                + " of method '" + method + "' from class '" + method.getDeclaringClass().getName() +"'.");
          }

          if(parameterPositions == null) {
            parameterPositions = new HashMap<String, Integer>();
          }

          parameterPositions.put(param.value(), i);

          break;
        }

      }
View Full Code Here

TOP

Related Classes of org.milyn.scribe.annotation.Param

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.