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
Modifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
Logger, usable by subclasses. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAlways returnsnull
as most Spring Web Flow scopes do not have obvious conversation ids.protected RequestContext
protected abstract MutableAttributeMap<Object>
getScope()
Template method that returns the target scope map.void
registerDestructionCallback
(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:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
remove
in 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 returnsnull
as 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:
getConversationId
in interfaceorg.springframework.beans.factory.config.Scope
- Returns:
- always returns
null
-
resolveContextualObject
- Specified by:
resolveContextualObject
in 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:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
- Parameters:
name
- the name of the bean to register the callback forcallback
- the callback to execute
-
getRequiredRequestContext
-