org.apache.servicemix.bean.support
Class DefaultMethodInvocationStrategy

java.lang.Object
  extended by org.apache.servicemix.bean.support.DefaultMethodInvocationStrategy
All Implemented Interfaces:
MethodInvocationStrategy

public class DefaultMethodInvocationStrategy
extends java.lang.Object
implements MethodInvocationStrategy

Represents the strategy used to figure out how to map a JBI message exchange to a POJO method invocation

Version:
$Revision: $

Constructor Summary
DefaultMethodInvocationStrategy()
           
 
Method Summary
 void addParameterMapping(java.lang.Class parameterType, org.apache.servicemix.expression.Expression expression)
          Adds a default parameter type mapping to an expression
 org.aopalliance.intercept.MethodInvocation createInvocation(java.lang.Object pojo, BeanInfo beanInfo, javax.jbi.messaging.MessageExchange messageExchange, BeanEndpoint pojoEndpoint)
          Creates an invocation on the given POJO using annotations to decide which method to invoke and to figure out which parameters to use
 org.apache.servicemix.expression.Expression getDefaultParameterTypeExpression(java.lang.Class parameterType)
           
 void loadDefaultRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMethodInvocationStrategy

public DefaultMethodInvocationStrategy()
Method Detail

getDefaultParameterTypeExpression

public org.apache.servicemix.expression.Expression getDefaultParameterTypeExpression(java.lang.Class parameterType)
Specified by:
getDefaultParameterTypeExpression in interface MethodInvocationStrategy

addParameterMapping

public void addParameterMapping(java.lang.Class parameterType,
                                org.apache.servicemix.expression.Expression expression)
Adds a default parameter type mapping to an expression


createInvocation

public org.aopalliance.intercept.MethodInvocation createInvocation(java.lang.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-2013 The Apache Software Foundation. All Rights Reserved.