org.apache.servicemix.bean.support
Class DefaultMethodInvocationStrategy
java.lang.Object
org.apache.servicemix.bean.support.DefaultMethodInvocationStrategy
- All Implemented Interfaces:
- MethodInvocationStrategy
public class DefaultMethodInvocationStrategy
- extends Object
- implements MethodInvocationStrategy
Represents the strategy used to figure out how to map a JBI message exchange to a POJO method invocation
- Version:
- $Revision: $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMethodInvocationStrategy
public DefaultMethodInvocationStrategy()
getDefaultParameterTypeExpression
public org.apache.servicemix.expression.Expression getDefaultParameterTypeExpression(Class parameterType)
- Specified by:
getDefaultParameterTypeExpression in interface MethodInvocationStrategy
addParameterMapping
public void addParameterMapping(Class parameterType,
org.apache.servicemix.expression.Expression expression)
- Adds a default parameter type mapping to an expression
createInvocation
public org.aopalliance.intercept.MethodInvocation createInvocation(Object pojo,
BeanInfo beanInfo,
javax.jbi.messaging.MessageExchange messageExchange,
BeanEndpoint pojoEndpoint)
throws javax.jbi.messaging.MessagingException
- Creates an invocation on the given POJO using annotations to decide which method to invoke
and to figure out which parameters to use
- Specified by:
createInvocation in interface MethodInvocationStrategy
- Throws:
javax.jbi.messaging.MessagingException
loadDefaultRegistry
public void loadDefaultRegistry()
Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.