public class ExpressionArgument extends Object implements MuleContextAware
Modifier and Type | Field and Description |
---|---|
protected ClassLoader |
expressionEvaluationClassLoader |
Constructor and Description |
---|
ExpressionArgument() |
ExpressionArgument(String name,
ExpressionConfig expressionConfig,
boolean optional) |
ExpressionArgument(String name,
ExpressionConfig expressionConfig,
boolean optional,
Class<?> returnClass) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(MuleMessage message)
Evaluates this Expression against the passed in Message.
|
String |
getCustomEvaluator() |
String |
getEvaluator() |
String |
getExpression() |
ExpressionConfig |
getExpressionConfig() |
protected String |
getFullExpression() |
String |
getName() |
Class<?> |
getReturnClass() |
boolean |
isOptional() |
void |
setCustomEvaluator(String evaluator) |
void |
setEvaluator(String evaluator) |
void |
setExpression(String expression) |
void |
setExpressionConfig(ExpressionConfig expressionConfig) |
void |
setExpressionEvaluationClassLoader(ClassLoader expressionEvaluationClassLoader) |
void |
setMuleContext(MuleContext context) |
void |
setName(String name) |
void |
setOptional(boolean optional) |
void |
setReturnDataType(Class<?> returnClass) |
protected void |
validate() |
protected ClassLoader expressionEvaluationClassLoader
public ExpressionArgument()
public ExpressionArgument(String name, ExpressionConfig expressionConfig, boolean optional)
public ExpressionArgument(String name, ExpressionConfig expressionConfig, boolean optional, Class<?> returnClass)
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public String getName()
public void setName(String name)
public ExpressionConfig getExpressionConfig()
public void setExpressionConfig(ExpressionConfig expressionConfig)
public boolean isOptional()
public void setOptional(boolean optional)
protected String getFullExpression()
protected void validate()
public Object evaluate(MuleMessage message) throws ExpressionRuntimeException
message
- the message to execute the expression onExpressionRuntimeException
- if the wrong return type is returned from the expression.public String getExpression()
public void setExpression(String expression)
public String getEvaluator()
public void setEvaluator(String evaluator)
public void setCustomEvaluator(String evaluator)
public String getCustomEvaluator()
public Class<?> getReturnClass()
public void setReturnDataType(Class<?> returnClass)
public void setExpressionEvaluationClassLoader(ClassLoader expressionEvaluationClassLoader)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.