|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.scope.AbstractWebFlowScope
public abstract class AbstractWebFlowScope
Base class for Scope
implementations that access a Web Flow scope from the current request.
Field Summary | |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger, usable by subclasses. |
Constructor Summary | |
---|---|
AbstractWebFlowScope()
|
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory)
|
java.lang.String |
getConversationId()
Always returns null as most Spring Web Flow scopes do not have obvious conversation ids. |
protected RequestContext |
getRequiredRequestContext()
|
protected abstract MutableAttributeMap<java.lang.Object> |
getScope()
Template method that returns the target scope map. |
void |
registerDestructionCallback(java.lang.String name,
java.lang.Runnable callback)
Will not register a destruction callback as Spring Web Flow does not support destruction of scoped beans. |
java.lang.Object |
remove(java.lang.String name)
|
java.lang.Object |
resolveContextualObject(java.lang.String key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log logger
Constructor Detail |
---|
public AbstractWebFlowScope()
Method Detail |
---|
public java.lang.Object get(java.lang.String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
get
in interface org.springframework.beans.factory.config.Scope
public java.lang.Object remove(java.lang.String name)
remove
in interface org.springframework.beans.factory.config.Scope
protected abstract MutableAttributeMap<java.lang.Object> getScope() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the scope could not be accessedpublic java.lang.String getConversationId()
null
as most Spring Web Flow scopes do not have obvious conversation ids. Subclasses
should override this method where conversation ids can be intelligently returned.
getConversationId
in interface org.springframework.beans.factory.config.Scope
null
public java.lang.Object resolveContextualObject(java.lang.String key)
resolveContextualObject
in interface org.springframework.beans.factory.config.Scope
public void registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)
registerDestructionCallback
in interface org.springframework.beans.factory.config.Scope
name
- the name of the bean to register the callback forcallback
- the callback to executeprotected RequestContext getRequiredRequestContext()
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |