org.apache.camel.component.bean
Class BeanInvocation
java.lang.Object
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
BeanInvocation
public BeanInvocation()
BeanInvocation
public BeanInvocation(Method method,
Object[] args)
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 invocationexchange
- 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