org.apache.camel.component.bean
Class BeanInvocation

java.lang.Object
  extended by org.apache.camel.component.bean.BeanInvocation
All Implemented Interfaces:
Externalizable, Serializable

public class BeanInvocation
extends Object
implements Externalizable

Invocation of beans that can handle being serialized.

See Also:
Serialized Form

Constructor Summary
BeanInvocation()
           
BeanInvocation(Method method, Object[] args)
           
 
Method Summary
 Object[] getArgs()
           
 Method getMethod()
           
 void invoke(Object pojo, Exchange exchange)
          This causes us to invoke the endpoint Pojo using reflection.
 void readExternal(ObjectInput objectInput)
           
 void setArgs(Object[] args)
           
 void setMethod(Method method)
           
 String toString()
           
 void writeExternal(ObjectOutput objectOutput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanInvocation

public BeanInvocation()

BeanInvocation

public BeanInvocation(Method method,
                      Object[] args)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getArgs

public Object[] getArgs()

getMethod

public Method getMethod()

setMethod

public void setMethod(Method method)

setArgs

public void setArgs(Object[] args)

invoke

public void invoke(Object pojo,
                   Exchange exchange)
This causes us to invoke the endpoint Pojo using reflection.

Parameters:
pojo - the bean on which to perform this invocation
exchange - the exchange carrying the method invocation

readExternal

public void readExternal(ObjectInput objectInput)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput objectOutput)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException


Apache CAMEL