org.apache.camel.component.bean
Class MethodInfo

java.lang.Object
  extended by org.apache.camel.component.bean.MethodInfo

public class MethodInfo
extends Object

Information about a method to be used for invocation.

Version:
$Revision: 672723 $

Constructor Summary
MethodInfo(Class type, Method method, List<ParameterInfo> parameters, List<ParameterInfo> bodyParameters, boolean hasCustomAnnotation)
           
 
Method Summary
 boolean bodyParameterMatches(Class bodyType)
           
 MethodInvocation createMethodInvocation(Object pojo, Exchange messageExchange)
           
protected  Expression createParametersExpression()
           
 List<ParameterInfo> getBodyParameters()
           
 Class getBodyParameterType()
           
 Method getMethod()
           
 List<ParameterInfo> getParameters()
           
 Expression getParametersExpression()
           
 Class getType()
           
 boolean hasBodyParameter()
           
protected  Object invoke(Method mth, Object pojo, Object[] arguments, Exchange exchange)
           
 boolean isHasCustomAnnotation()
           
 boolean isReturnTypeVoid()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodInfo

public MethodInfo(Class type,
                  Method method,
                  List<ParameterInfo> parameters,
                  List<ParameterInfo> bodyParameters,
                  boolean hasCustomAnnotation)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

createMethodInvocation

public MethodInvocation createMethodInvocation(Object pojo,
                                               Exchange messageExchange)

getType

public Class getType()

getMethod

public Method getMethod()

getParametersExpression

public Expression getParametersExpression()

getBodyParameters

public List<ParameterInfo> getBodyParameters()

getBodyParameterType

public Class getBodyParameterType()

bodyParameterMatches

public boolean bodyParameterMatches(Class bodyType)

getParameters

public List<ParameterInfo> getParameters()

hasBodyParameter

public boolean hasBodyParameter()

isHasCustomAnnotation

public boolean isHasCustomAnnotation()

isReturnTypeVoid

public boolean isReturnTypeVoid()

invoke

protected Object invoke(Method mth,
                        Object pojo,
                        Object[] arguments,
                        Exchange exchange)
                 throws IllegalAccessException,
                        InvocationTargetException
Throws:
IllegalAccessException
InvocationTargetException

createParametersExpression

protected Expression createParametersExpression()


Copyright © 2008 Apache Software Foundation. All Rights Reserved.