@Language(value="bean")
public class BeanLanguage
extends org.apache.camel.support.LanguageSupport
implements org.apache.camel.spi.GeneratedPropertyConfigurer
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 |
---|---|
boolean |
configure(org.apache.camel.CamelContext camelContext,
Object target,
String name,
Object value,
boolean ignoreCase) |
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 boolean configure(org.apache.camel.CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase)
configure
in interface org.apache.camel.spi.PropertyConfigurer
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)
createPredicate
in interface org.apache.camel.spi.Language
public org.apache.camel.Expression createExpression(String expression)
createExpression
in interface org.apache.camel.spi.Language
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
isSingleton
in class org.apache.camel.support.LanguageSupport
Apache Camel