Class ViewScope
- java.lang.Object
-
- org.joinfaces.autoconfigure.viewscope.ViewScope
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDESTRUCTION_CALLBACK_NAME_PREFIXConstant identifying theStringprefixed to the name of a destruction callback when it is stored in aview map.static java.lang.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 java.lang.Objectget(java.lang.String name, ObjectFactory objectFactory)java.lang.StringgetConversationId()voidregisterDestructionCallback(java.lang.String name, java.lang.Runnable callback)java.lang.Objectremove(java.lang.String name)java.lang.ObjectresolveContextualObject(java.lang.String key)
-
-
-
Field Detail
-
SCOPE_VIEW
public static final java.lang.String SCOPE_VIEW
Scope identifier for view scope: "view".
-
DESTRUCTION_CALLBACK_NAME_PREFIX
public static final java.lang.String DESTRUCTION_CALLBACK_NAME_PREFIX
Constant identifying theStringprefixed to the name of a destruction callback when it is stored in aview map.
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.String name, ObjectFactory objectFactory)
-
remove
@Nullable public java.lang.Object remove(java.lang.String name)
-
getConversationId
@Nullable public java.lang.String getConversationId()
- Specified by:
getConversationIdin interfaceScope
-
registerDestructionCallback
public void registerDestructionCallback(java.lang.String name, java.lang.Runnable callback)- Specified by:
registerDestructionCallbackin interfaceScope
-
resolveContextualObject
@Nullable public java.lang.Object resolveContextualObject(java.lang.String key)
- Specified by:
resolveContextualObjectin interfaceScope
-
-