@Language(value="bean")
public class BeanLanguage
extends org.apache.camel.support.LanguageSupport
beanName.methodName
which is then invoked using the
beanName to lookup in the bean integration to bind the
Exchange
to the method arguments.
As of Camel 1.5 the bean language also supports invoking a provided bean by
its classname or the bean itself.Constructor and Description |
---|
BeanLanguage() |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Expression |
createExpression(Object bean,
String method) |
org.apache.camel.Expression |
createExpression(String expression) |
org.apache.camel.Predicate |
createPredicate(String expression) |
Object |
getBean() |
Class<?> |
getBeanType() |
String |
getMethod() |
String |
getRef() |
boolean |
isSingleton() |
void |
setBean(Object bean) |
void |
setBeanType(Class<?> beanType) |
void |
setMethod(String method) |
void |
setRef(String ref) |
getCamelContext, hasSimpleFunction, loadResource, setCamelContext
public Object getBean()
public void setBean(Object bean)
public Class<?> getBeanType()
public void setBeanType(Class<?> beanType)
public String getRef()
public void setRef(String ref)
public String getMethod()
public void setMethod(String method)
public org.apache.camel.Predicate createPredicate(String expression)
public org.apache.camel.Expression createExpression(String expression)
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
isSingleton
in class org.apache.camel.support.LanguageSupport
Apache Camel