org.apache.camel.component.bean
Class DefaultParameterMappingStrategy
java.lang.Object
org.apache.camel.component.bean.DefaultParameterMappingStrategy
- All Implemented Interfaces:
- ParameterMappingStrategy
public class DefaultParameterMappingStrategy
- extends Object
- implements ParameterMappingStrategy
Represents the strategy used to figure out how to map a message exchange to a POJO method invocation
- Version:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultParameterMappingStrategy
public DefaultParameterMappingStrategy()
getDefaultParameterTypeExpression
public Expression getDefaultParameterTypeExpression(Class<?> parameterType)
- Description copied from interface:
ParameterMappingStrategy
- Gets an expression used for evaluation with the current Exchange and its result
is used as parameter value for the given type
- Specified by:
getDefaultParameterTypeExpression
in interface ParameterMappingStrategy
- Parameters:
parameterType
- the parameter type
- Returns:
- the expression to evaluate as value
addParameterMapping
public void addParameterMapping(Class<?> parameterType,
Expression expression)
- Adds a default parameter type mapping to an expression
loadDefaultRegistry
public void loadDefaultRegistry()
Apache Camel