Package org.apache.camel.spring.util

Examples of org.apache.camel.spring.util.BeanInfo


    /**
     * Create a processor which invokes the given method when an incoming message exchange is received
     */
    protected Processor createConsumerProcessor(final Object pojo, final Method method, final Endpoint endpoint) {
        final BeanInfo beanInfo = new BeanInfo(pojo.getClass(), invocationStrategy);

        return new Processor() {
            @Override
      public String toString() {
        return "Processor on " + endpoint;
      }

      public void process(Exchange exchange) throws Exception {
        if (log.isDebugEnabled()) {
          log.debug(">>>> invoking method for: " + exchange);
        }
                MethodInvocation invocation = beanInfo.createInvocation(method, pojo, exchange);
              if (invocation == null) {
                throw new IllegalStateException("No method invocation could be created");
              }
                try {
                  invocation.proceed();
View Full Code Here

TOP

Related Classes of org.apache.camel.spring.util.BeanInfo

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.