Package org.seedstack.seed.el
Interface ELService
-
public interface ELServiceThe ELService provides a DSL to facilitate the evaluation of expression language.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceELService.ELContextProviderThis interface provides methods to add ELContext for EL evaluation.static interfaceELService.ELExpressionProviderThis interface provides methods to add properties for the EL evaluation.static interfaceELService.MethodExpressionProviderThis interface provides methods to evaluate a method expression.static interfaceELService.ValueExpressionProviderThis interface provides methods to evaluate a value expression.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ELService.ELContextProviderwithExpression(String el, Class returnType)Sets the expression language to evaluate and specifies the expected return type.ELService.MethodExpressionProviderwithMethodExpression(javax.el.MethodExpression methodExpression)Sets a MethodExpression to invoke.ELService.ValueExpressionProviderwithValueExpression(javax.el.ValueExpression valueExpression)Sets a ValueExpression to evaluate.
-
-
-
Method Detail
-
withExpression
ELService.ELContextProvider withExpression(String el, Class returnType)
Sets the expression language to evaluate and specifies the expected return type.- Parameters:
el- the expression language to evaluatereturnType- the expected return type- Returns:
- an ELContextProvider
- Throws:
SeedException- if el is blank or returnType is null
-
withValueExpression
ELService.ValueExpressionProvider withValueExpression(javax.el.ValueExpression valueExpression)
Sets a ValueExpression to evaluate.- Parameters:
valueExpression- the value expression to set- Returns:
- ValueExpressionProvider
- Throws:
SeedException- if the valueExpression is null
-
withMethodExpression
ELService.MethodExpressionProvider withMethodExpression(javax.el.MethodExpression methodExpression)
Sets a MethodExpression to invoke.- Parameters:
methodExpression- the method expression to set- Returns:
- MethodExpressionProvider
- Throws:
SeedException- if the methodExpression is null
-
-