Class ViewScope
- java.lang.Object
-
- org.joinfaces.autoconfigure.viewscope.ViewScope
-
-
Field Summary
Fields Modifier and Type Field Description static StringDESTRUCTION_CALLBACK_NAME_PREFIXstatic 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, ObjectFactory objectFactory)StringgetConversationId()voidregisterDestructionCallback(String name, Runnable callback)Objectremove(String name)ObjectresolveContextualObject(String key)
-
-
-
Method Detail
-
get
public Object get(String name, ObjectFactory objectFactory)
-
getConversationId
@Nullable public String getConversationId()
- Specified by:
getConversationIdin interfaceScope
-
registerDestructionCallback
public void registerDestructionCallback(String name, Runnable callback)
- Specified by:
registerDestructionCallbackin interfaceScope
-
resolveContextualObject
@Nullable public Object resolveContextualObject(String key)
- Specified by:
resolveContextualObjectin interfaceScope
-
-