com.google.code.rees.scope.spring
Class ConversationScope
java.lang.Object
com.google.code.rees.scope.spring.ConversationScope
- All Implemented Interfaces:
- org.springframework.beans.factory.config.Scope
public class ConversationScope
- extends Object
- implements org.springframework.beans.factory.config.Scope
This custom scope must be configured in a Spring XML context.
It allows for conversation-scoped beans to be injected by the Spring IoC.
- Author:
- rees.byars
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversationScope
public ConversationScope()
get
public Object get(String name,
org.springframework.beans.factory.ObjectFactory<?> objectFactory)
- Specified by:
get in interface org.springframework.beans.factory.config.Scope
getConversationId
public String getConversationId()
- Specified by:
getConversationId in interface org.springframework.beans.factory.config.Scope
registerDestructionCallback
public void registerDestructionCallback(String name,
Runnable destructionCallback)
- Specified by:
registerDestructionCallback in interface org.springframework.beans.factory.config.Scope
remove
public Object remove(String name)
- Specified by:
remove in interface org.springframework.beans.factory.config.Scope
resolveContextualObject
public Object resolveContextualObject(String name)
- Specified by:
resolveContextualObject in interface org.springframework.beans.factory.config.Scope
Copyright © 2012-2013. All Rights Reserved.