Package io.webdevice.wiring
Class WebDeviceScope
- java.lang.Object
-
- io.webdevice.wiring.WebDeviceScope
-
- All Implemented Interfaces:
org.springframework.beans.factory.config.Scope
public class WebDeviceScope extends Object implements org.springframework.beans.factory.config.Scope
-
-
Constructor Summary
Constructors Constructor Description WebDeviceScope()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandispose()Reset all instances in the scope.booleanequals(Object o)Objectget(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)StringgetConversationId()inthashCode()booleanisEmpty()voidregisterDestructionCallback(String name, Runnable callback)static WebDeviceScoperegisterScope(org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry)Objectremove(String name)ObjectresolveContextualObject(String key)static WebDeviceScopescope(org.springframework.context.ApplicationContext context)
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
get
public Object get(String name, org.springframework.beans.factory.ObjectFactory<?> objectFactory)
- Specified by:
getin interfaceorg.springframework.beans.factory.config.Scope
-
remove
public Object remove(String name)
- Specified by:
removein interfaceorg.springframework.beans.factory.config.Scope
-
registerDestructionCallback
public void registerDestructionCallback(String name, Runnable callback)
- Specified by:
registerDestructionCallbackin interfaceorg.springframework.beans.factory.config.Scope
-
resolveContextualObject
public Object resolveContextualObject(String key)
- Specified by:
resolveContextualObjectin interfaceorg.springframework.beans.factory.config.Scope
-
getConversationId
public String getConversationId()
- Specified by:
getConversationIdin interfaceorg.springframework.beans.factory.config.Scope
-
dispose
public boolean dispose()
Reset all instances in the scope.- Returns:
trueif items were reset
-
registerScope
public static WebDeviceScope registerScope(org.springframework.beans.factory.config.ConfigurableListableBeanFactory registry)
-
scope
public static WebDeviceScope scope(org.springframework.context.ApplicationContext context)
-
-