@Metadata(firstVersion="1.3.0",
label="language,core,java",
title="Bean method")
public class MethodCallExpression
extends ExpressionDefinition
| Constructor and Description |
|---|
MethodCallExpression() |
MethodCallExpression(Class<?> type) |
MethodCallExpression(Class<?> type,
String method) |
MethodCallExpression(Object instance) |
MethodCallExpression(Object instance,
String method) |
MethodCallExpression(String beanName) |
MethodCallExpression(String beanName,
String method) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureLanguage(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.Language language) |
org.apache.camel.Expression |
createExpression(org.apache.camel.CamelContext camelContext) |
org.apache.camel.Predicate |
createPredicate(org.apache.camel.CamelContext camelContext) |
Class<?> |
getBeanType() |
String |
getBeanTypeName() |
Object |
getInstance() |
String |
getLanguage() |
String |
getMethod() |
String |
getRef() |
void |
setBeanType(Class<?> beanType) |
void |
setBeanTypeName(String beanTypeName)
Class name of the bean to use
|
void |
setInstance(Object instance) |
void |
setMethod(String method)
Name of method to call
|
void |
setRef(String ref)
Reference to bean to lookup in the registry
|
String |
toString() |
assertMatches, configureExpression, configurePredicate, createExpression, createPredicate, evaluate, evaluate, getExpression, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getOtherAttributes, getPredicate, getTrim, matches, setExpression, setExpressionType, setExpressionValue, setId, setOtherAttributes, setProperty, setTrimclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptionspublic MethodCallExpression()
public MethodCallExpression(String beanName)
public MethodCallExpression(String beanName, String method)
public MethodCallExpression(Object instance)
public MethodCallExpression(Object instance, String method)
public MethodCallExpression(Class<?> type)
public MethodCallExpression(Class<?> type, String method)
public String getLanguage()
getLanguage in class ExpressionDefinitionpublic Class<?> getBeanType()
public void setBeanType(Class<?> beanType)
public String getBeanTypeName()
public void setBeanTypeName(String beanTypeName)
public Object getInstance()
public void setInstance(Object instance)
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext)
createExpression in interface org.apache.camel.ExpressionFactorycreateExpression in class ExpressionDefinitionprotected void configureLanguage(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.Language language)
public org.apache.camel.Predicate createPredicate(org.apache.camel.CamelContext camelContext)
createPredicate in class ExpressionDefinitionpublic String toString()
toString in class ExpressionDefinitionApache Camel