Class ViewScope
- java.lang.Object
-
- org.joinfaces.autoconfigure.viewscope.ViewScope
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class ViewScope extends Object implements org.springframework.beans.factory.config.Scope
Implementation of view scope. This class exposes the JSFview mapas springScope.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDESTRUCTION_CALLBACK_NAME_PREFIXConstant identifying theStringprefixed to the name of a destruction callback when it is stored in aview map.static StringSCOPE_VIEWScope identifier for view scope: "view".
-
Constructor Summary
Constructors Constructor Description ViewScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(String name, org.springframework.beans.factory.ObjectFactory objectFactory)StringgetConversationId()voidregisterDestructionCallback(String name, Runnable callback)Objectremove(String name)ObjectresolveContextualObject(String key)
-
-
-
Field Detail
-
SCOPE_VIEW
public static final String SCOPE_VIEW
Scope identifier for view scope: "view".- See Also:
WebApplicationContext.SCOPE_SESSION,WebApplicationContext.SCOPE_REQUEST, Constant Field Values
-
-
Method Detail
-
get
public Object get(String name, org.springframework.beans.factory.ObjectFactory objectFactory)
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
@Nullable public Object remove(String name)
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
@Nullable public String getConversationId()
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(String name, Runnable callback)
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
-