Package org.joinfaces.viewscope
Class ViewScope
java.lang.Object
org.joinfaces.viewscope.ViewScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
Implementation of view scope.
This class exposes the JSF
view map
as spring Scope
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerDestructionCallback
(String name, Runnable callback)
-
Field Details
-
SCOPE_VIEW
Scope identifier for view scope: "view".- See Also:
-
WebApplicationContext.SCOPE_SESSION
WebApplicationContext.SCOPE_REQUEST
- Constant Field Values
-
DESTRUCTION_CALLBACK_NAME_PREFIX
Constant identifying theString
prefixed to the name of a destruction callback when it is stored in aview map
.- See Also:
-
ServletRequestAttributes.DESTRUCTION_CALLBACK_NAME_PREFIX
-
-
Constructor Details
-
ViewScope
public ViewScope()
-
-
Method Details
-
get
- Specified by:
get
in interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
remove
in interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationId
in interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
- Specified by:
registerDestructionCallback
in interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObject
in interfaceorg.springframework.beans.factory.config.Scope
-