Class AbstractWebFlowScope
java.lang.Object
org.springframework.webflow.scope.AbstractWebFlowScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
- Direct Known Subclasses:
ConversationScope,FlashScope,FlowScope,RequestScope,ViewScope
public abstract class AbstractWebFlowScope
extends Object
implements org.springframework.beans.factory.config.Scope
Base class for
Scope implementations that access a Web Flow scope from the current request.- Author:
- Keith Donald
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogLogger, usable by subclasses. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlways returnsnullas most Spring Web Flow scopes do not have obvious conversation ids.protected RequestContextprotected abstract MutableAttributeMap<Object>getScope()Template method that returns the target scope map.voidregisterDestructionCallback(String name, Runnable callback) Will not register a destruction callback as Spring Web Flow does not support destruction of scoped beans.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger, usable by subclasses.
-
-
Constructor Details
-
AbstractWebFlowScope
public AbstractWebFlowScope()
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
getScope
Template method that returns the target scope map.- Throws:
IllegalStateException- if the scope could not be accessed
-
getConversationId
Always returnsnullas most Spring Web Flow scopes do not have obvious conversation ids. Subclasses should override this method where conversation ids can be intelligently returned.- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope- Returns:
- always returns
null
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
Will not register a destruction callback as Spring Web Flow does not support destruction of scoped beans. Subclasses should override this method where where destruction can adequately be accomplished.- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope- Parameters:
name- the name of the bean to register the callback forcallback- the callback to execute
-
getRequiredRequestContext
-