|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.bean.BeanInfo
public class BeanInfo
Represents the metadata about a bean type created via a combination of introspection and annotations together with some useful sensible defaults
Constructor Summary | |
---|---|
BeanInfo(CamelContext camelContext,
Class type)
|
|
BeanInfo(CamelContext camelContext,
Class type,
ParameterMappingStrategy strategy)
|
Method Summary | |
---|---|
protected MethodInfo |
chooseMethod(Object pojo,
Exchange exchange)
Lets try choose one of the available methods to invoke if we can match the message body to the body parameter |
protected MethodInfo |
chooseMethodWithCustomAnnotations(Exchange exchange,
Collection<MethodInfo> possibles)
|
protected MethodInfo |
chooseMethodWithMatchingBody(Exchange exchange,
Collection<MethodInfo> operationList)
|
MethodInvocation |
createInvocation(Method method,
Object pojo,
Exchange exchange)
|
MethodInvocation |
createInvocation(Object pojo,
Exchange exchange)
|
protected MethodInfo |
createMethodInfo(Class clazz,
Method method)
|
static ParameterMappingStrategy |
createParameterMappingStrategy(CamelContext camelContext)
|
protected Expression |
createParameterUnmarshalExpression(Class clazz,
Method method,
Class parameterType,
Annotation[] parameterAnnotation)
Creates an expression for the given parameter type if the parameter can be mapped automatically or null if the parameter cannot be mapped due to unsufficient annotations or not fitting with the default type conventions. |
protected Expression |
createParameterUnmarshalExpressionForAnnotation(Class clazz,
Method method,
Class parameterType,
Annotation annotation)
|
CamelContext |
getCamelContext()
|
MethodInfo |
getMethodInfo(Method method)
Returns the MethodInfo for the given method if it exists or null
if there is no metadata available for the given method |
Class |
getType()
|
protected void |
introspect(Class clazz)
|
protected MethodInfo |
introspect(Class clazz,
Method method)
|
protected boolean |
isPossibleBodyParameter(Annotation[] annotations)
|
protected boolean |
isValidMethod(Class clazz,
Method method)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanInfo(CamelContext camelContext, Class type)
public BeanInfo(CamelContext camelContext, Class type, ParameterMappingStrategy strategy)
Method Detail |
---|
public Class getType()
public CamelContext getCamelContext()
public MethodInvocation createInvocation(Method method, Object pojo, Exchange exchange) throws RuntimeCamelException
RuntimeCamelException
public MethodInvocation createInvocation(Object pojo, Exchange exchange) throws RuntimeCamelException, AmbiguousMethodCallException
RuntimeCamelException
AmbiguousMethodCallException
protected void introspect(Class clazz)
protected MethodInfo introspect(Class clazz, Method method)
public MethodInfo getMethodInfo(Method method)
MethodInfo
for the given method if it exists or null
if there is no metadata available for the given method
protected MethodInfo createMethodInfo(Class clazz, Method method)
protected MethodInfo chooseMethod(Object pojo, Exchange exchange) throws AmbiguousMethodCallException
pojo
- the bean to invoke a method onexchange
- the message exchange
AmbiguousMethodCallException
protected MethodInfo chooseMethodWithMatchingBody(Exchange exchange, Collection<MethodInfo> operationList) throws AmbiguousMethodCallException
AmbiguousMethodCallException
protected MethodInfo chooseMethodWithCustomAnnotations(Exchange exchange, Collection<MethodInfo> possibles) throws AmbiguousMethodCallException
AmbiguousMethodCallException
protected Expression createParameterUnmarshalExpression(Class clazz, Method method, Class parameterType, Annotation[] parameterAnnotation)
protected boolean isPossibleBodyParameter(Annotation[] annotations)
protected Expression createParameterUnmarshalExpressionForAnnotation(Class clazz, Method method, Class parameterType, Annotation annotation)
protected boolean isValidMethod(Class clazz, Method method)
public static ParameterMappingStrategy createParameterMappingStrategy(CamelContext camelContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |