Package org.apache.camel.builder

Examples of org.apache.camel.builder.FluentArg


        // lets convert any references
        Set<Map.Entry<String, Object>> attributeEntries = attributeArguments.entrySet();
        for (Map.Entry<String, Object> entry : attributeEntries) {
            String name = entry.getKey();
            FluentArg arg = match.parameterAnnotations.get(name);
            if (arg != null && (arg.reference() || name.equals("ref"))) {
                Object value = entry.getValue();
                if (value instanceof String) {
                    entry.setValue(new RuntimeBeanReference(value.toString()));
                }
            }
View Full Code Here


      // make sure all the given attribute parameters can be assigned via
      // attributes
      boolean miss = false;
      for (String key : attributeNames) {
        FluentArg arg = method.parameterAnnotations.get(key);
        if (arg == null || !arg.attribute()) {
          miss = true;
          break;
        }
      }
      if (miss)
View Full Code Here

        LinkedHashMap<String, Class> map = new LinkedHashMap<String, Class>();
        LinkedHashMap<String, FluentArg> amap = new LinkedHashMap<String, FluentArg>();
        Class<?>[] parameters = method.getParameterTypes();
        for (int j = 0; j < parameters.length; j++) {
          Class<?> parameter = parameters[j];
          FluentArg annotation = getParameterAnnotation(FluentArg.class, method, j);
          if (annotation != null) {
            map.put(annotation.value(), parameter);
            amap.put(annotation.value(), annotation);
          } else {
            break;
          }
        }
View Full Code Here

TOP

Related Classes of org.apache.camel.builder.FluentArg

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.