org.apache.camel.component.bean
Class BeanProcessor

java.lang.Object
  extended by org.apache.camel.component.bean.BeanProcessor
All Implemented Interfaces:
Processor

public class BeanProcessor
extends Object
implements Processor

A Processor which converts the inbound exchange to a method invocation on a POJO

Version:
$Revision: $

Field Summary
static String METHOD_NAME
           
 
Constructor Summary
BeanProcessor(Object pojo, BeanInfo beanInfo)
           
BeanProcessor(Object pojo, CamelContext camelContext)
           
BeanProcessor(Object pojo, ParameterMappingStrategy parameterMappingStrategy)
           
 
Method Summary
static ParameterMappingStrategy createParameterMappingStrategy(CamelContext camelContext)
           
 Method getMethod()
           
 String getMethodName()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setMethod(Method method)
           
 void setMethodName(String methodName)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

METHOD_NAME

public static final String METHOD_NAME
See Also:
Constant Field Values
Constructor Detail

BeanProcessor

public BeanProcessor(Object pojo,
                     BeanInfo beanInfo)

BeanProcessor

public BeanProcessor(Object pojo,
                     ParameterMappingStrategy parameterMappingStrategy)

BeanProcessor

public BeanProcessor(Object pojo,
                     CamelContext camelContext)
Method Detail

createParameterMappingStrategy

public static ParameterMappingStrategy createParameterMappingStrategy(CamelContext camelContext)

toString

public String toString()
Overrides:
toString in class Object

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Throws:
Exception - if an internal processing error has occurred.

getMethod

public Method getMethod()

setMethod

public void setMethod(Method method)

getMethodName

public String getMethodName()

setMethodName

public void setMethodName(String methodName)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.