|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springjutsu.validation.spel.WebContextSPELResolver
public class WebContextSPELResolver
A request-aware resolver of SPEL Expressions. Evaluates SPEL expressions in a MVC & Web Flow aware context.
| Field Summary | |
|---|---|
protected org.springframework.expression.ExpressionParser |
expressionParser
Expression parser used to parse expressions. |
protected NamedScopeEvaluationContext |
scopedContext
Evaluation context which will contain request handler implementation-specific scopes. |
| Constructor Summary | |
|---|---|
WebContextSPELResolver(Object model)
Initialize evaluation context and expression parser. |
|
| Method Summary | |
|---|---|
Object |
getBySpel(String spel)
Evaluates a SPEL expression within the current web context, returning the result. |
protected org.springframework.webflow.execution.RequestContext |
getOrMockRequestContext()
Either gets the current thread-bound Web Flow requestContext instance, if this is a Web Flow request, or mocks a Web Flow request out of an MVC request, in order to standardize our web-scoped property access. |
protected void |
initContexts(Object model)
Initialize Scopes to search within the Named Scope Context. |
protected void |
initPropertyAccessors()
Initialize property accessors. |
void |
setBySpel(String spel,
Object object)
Sets some object to the location specified by a spel expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NamedScopeEvaluationContext scopedContext
protected org.springframework.expression.ExpressionParser expressionParser
| Constructor Detail |
|---|
public WebContextSPELResolver(Object model)
model - the Model for this request| Method Detail |
|---|
public Object getBySpel(String spel)
spel - String SPEL expression
public void setBySpel(String spel,
Object object)
spel - String SPEL expressionobject - some object to set at SPEL-specified location.protected org.springframework.webflow.execution.RequestContext getOrMockRequestContext()
protected void initPropertyAccessors()
protected void initContexts(Object model)
model - The validated model for this request.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||