|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 |
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)
|
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)
Introspects the given class |
protected MethodInfo |
introspect(Class clazz,
Method method)
Introspects the given method |
protected boolean |
isValidMethod(Class clazz,
Method method)
Validates wheter the given method is a valid candidate for Camel Bean Binding. |
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 static ParameterMappingStrategy createParameterMappingStrategy(CamelContext camelContext)
public MethodInvocation createInvocation(Method method, Object pojo, Exchange exchange)
public MethodInvocation createInvocation(Object pojo, Exchange exchange) throws AmbiguousMethodCallException, MethodNotFoundException
AmbiguousMethodCallException
MethodNotFoundException
protected void introspect(Class clazz)
clazz
- the classprotected MethodInfo introspect(Class clazz, Method method)
clazz
- the classmethod
- the 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
- is thrown if cannot chose method due to ambiguousprotected boolean isValidMethod(Class clazz, Method method)
clazz
- the classmethod
- the method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |