java.lang.Object
org.marid.spring.scope.ResettableScope
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class ResettableScope extends Object implements org.springframework.beans.factory.config.Scope
-
Constructor Summary
Constructors Constructor Description ResettableScope(String id) -
Method Summary
Modifier and Type Method Description @NotNull Objectget(@NotNull String name, @NotNull org.springframework.beans.factory.ObjectFactory<?> objectFactory)StringgetConversationId()voidregisterDestructionCallback(@NotNull String name, @NotNull Runnable callback)Objectremove(@NotNull String name)voidreset()ObjectresolveContextualObject(@NotNull String key)StringtoString()
-
Constructor Details
-
Method Details
-
get
@NotNull public @NotNull Object get(@NotNull @NotNull String name, @NotNull @NotNull org.springframework.beans.factory.ObjectFactory<?> objectFactory)- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(@NotNull @NotNull String name, @NotNull @NotNull Runnable callback)- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
reset
- Throws:
ScopeResetException
-
toString
-