org.apache.camel.component.bean
Class PojoMessageInvocationHandler

java.lang.Object
  extended by org.apache.camel.component.bean.AbstractCamelInvocationHandler
      extended by org.apache.camel.component.bean.PojoMessageInvocationHandler
All Implemented Interfaces:
InvocationHandler

public class PojoMessageInvocationHandler
extends AbstractCamelInvocationHandler

Special InvocationHandler for methods that have only one parameter. This parameter is directly sent to as the body of the message. The idea is to use that as a very open message format especially when combined with e.g. JAXB serialization.


Field Summary
 
Fields inherited from class org.apache.camel.component.bean.AbstractCamelInvocationHandler
endpoint, producer
 
Constructor Summary
PojoMessageInvocationHandler(Endpoint endpoint, Producer producer)
           
 
Method Summary
 Object doInvokeProxy(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.apache.camel.component.bean.AbstractCamelInvocationHandler
afterInvoke, findSuitableException, getExecutorService, getGenericType, invoke, invokeWithBody, isValidMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoMessageInvocationHandler

public PojoMessageInvocationHandler(Endpoint endpoint,
                                    Producer producer)
Method Detail

doInvokeProxy

public Object doInvokeProxy(Object proxy,
                            Method method,
                            Object[] args)
                     throws Throwable
Specified by:
doInvokeProxy in class AbstractCamelInvocationHandler
Throws:
Throwable


Apache CAMEL