@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 |
---|---|
Class<?> |
getBeanType() |
String |
getBeanTypeName() |
Object |
getInstance() |
String |
getLanguage() |
String |
getMethod() |
String |
getRef() |
String |
getScope() |
void |
setBeanType(Class<?> beanType) |
void |
setBeanTypeName(String beanTypeName)
Class name (fully qualified) of the bean to use
Will lookup in registry and if there is a single instance of the same type, then the existing bean is used,
otherwise a new bean is created (requires a default no-arg constructor).
|
void |
setInstance(Object instance) |
void |
setMethod(String method)
Name of method to call
|
void |
setRef(String ref)
Reference to an existing bean (bean id) to lookup in the registry
|
void |
setScope(String scope)
Scope of bean.
|
String |
toString() |
createExpression, createPredicate, evaluate, getExpression, getExpressionFactory, getExpressionType, getExpressionValue, getId, getLabel, getLabel, getPredicate, getPredicateFactory, getTrim, init, initPredicate, matches, setExpression, setExpressionType, setExpressionValue, setId, setTrim
public MethodCallExpression()
public MethodCallExpression(String beanName)
public MethodCallExpression(Object instance)
public MethodCallExpression(Class<?> type)
public String getLanguage()
getLanguage
in class ExpressionDefinition
public String getRef()
public void setRef(String ref)
public String getMethod()
public void setMethod(String method)
public Class<?> getBeanType()
public void setBeanType(Class<?> beanType)
public String getBeanTypeName()
public void setBeanTypeName(String beanTypeName)
public String getScope()
public void setScope(String scope)
public Object getInstance()
public void setInstance(Object instance)
public String toString()
toString
in class ExpressionDefinition
Apache Camel