Package org.apache.camel.builder

Examples of org.apache.camel.builder.Fluent


    // Add the builder actions that are annotated with @Fluent(callOnElementEnd=true)
    if( currentBuilder!=null ) {
      Method[] methods = currentBuilder.getMethods();
      for (int i = 0; i < methods.length; i++) {
        Method method = methods[i];
        Fluent annotation = method.getAnnotation(Fluent.class);
        if( annotation!=null && annotation.callOnElementEnd() ) {
         
          if( method.getParameterTypes().length > 0 ) {
            throw new RuntimeException("Only methods with no parameters can annotated with @Fluent(callOnElementEnd=true): "+method);
          }
         
View Full Code Here


      if (!method.isAnnotationPresent(Fluent.class)) {
        continue;
      }
     
      // Use the fluent supplied name for the action, or the method name if not set.
      Fluent fluentAnnotation = method.getAnnotation(Fluent.class);
      if ( StringUtils.hasText(fluentAnnotation.value()) ?
          name.equals(fluentAnnotation.value()) :
          name.equals(method.getName()) ) {

        LinkedHashMap<String, Class> map = new LinkedHashMap<String, Class>();
        LinkedHashMap<String, FluentArg> amap = new LinkedHashMap<String, FluentArg>();
        Class<?>[] parameters = method.getParameterTypes();
View Full Code Here

TOP

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

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.