|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.el.PropertyResolver
org.springframework.webflow.executor.jsf.AbstractFlowExecutionPropertyResolver
org.springframework.webflow.executor.jsf.FlowPropertyResolver
public class FlowPropertyResolver
Custom property resolver that resolves flow session scope attributes of the current flow execution. This resolver
will also create and set the attribute value to a bean from the root Spring Web Application Context if the value does
not already exist, allowing for lazy-initialized binding variables.
Designed mainly to be used with the FlowVariableResolver
. This is the original property resolver implemented
with Spring Web Flow 1.0. In general, prefer DelegatingFlowVariableResolver
or
FlowExecutionVariableResolver
over use of this class. Also, consider use of the
DelegatingVariableResolver
as an alternative to accessing lazy-initialized binding variables managed by a
Spring application context that uses custom bean scopes.
Constructor Summary | |
---|---|
FlowPropertyResolver(javax.faces.el.PropertyResolver resolverDelegate)
Creates a new flow execution property resolver that resolves flow scope attributes. |
Method Summary | |
---|---|
protected java.lang.Object |
doGetAttribute(FlowExecution execution,
java.lang.String attributeName)
Gets the value of the flow execution attribute. |
protected java.lang.Class |
doGetAttributeType(FlowExecution execution,
java.lang.String attributeName)
Gets the type of value returned by the flow execution attribute. |
protected void |
doSetAttribute(FlowExecution execution,
java.lang.String attributeName,
java.lang.Object attributeValue)
Sets the value of the flow execution attribute. |
protected org.springframework.web.context.WebApplicationContext |
getWebApplicationContext(javax.faces.context.FacesContext facesContext)
Retrieve the web application context to delegate bean name resolution to. |
Methods inherited from class org.springframework.webflow.executor.jsf.AbstractFlowExecutionPropertyResolver |
---|
getResolverDelegate, getType, getType, getValue, getValue, isReadOnly, isReadOnly, setValue, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowPropertyResolver(javax.faces.el.PropertyResolver resolverDelegate)
resolverDelegate
- the resolver to delegate to when the property is not a flow execution attributeMethod Detail |
---|
protected java.lang.Class doGetAttributeType(FlowExecution execution, java.lang.String attributeName)
AbstractFlowExecutionPropertyResolver
doGetAttributeType
in class AbstractFlowExecutionPropertyResolver
execution
- the flow executionattributeName
- the name of the attribute
protected java.lang.Object doGetAttribute(FlowExecution execution, java.lang.String attributeName)
AbstractFlowExecutionPropertyResolver
doGetAttribute
in class AbstractFlowExecutionPropertyResolver
execution
- the flow executionattributeName
- the name of the attribute
protected void doSetAttribute(FlowExecution execution, java.lang.String attributeName, java.lang.Object attributeValue)
AbstractFlowExecutionPropertyResolver
doSetAttribute
in class AbstractFlowExecutionPropertyResolver
execution
- the flow executionattributeName
- the name of the attributeattributeValue
- the attribute valueprotected org.springframework.web.context.WebApplicationContext getWebApplicationContext(javax.faces.context.FacesContext facesContext)
facesContext
- the current JSF context
null
)FacesContextUtils.getRequiredWebApplicationContext(javax.faces.context.FacesContext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |