org.springframework.config.java
Class CustomScope

java.lang.Object
  extended by org.springframework.config.java.CustomScope
All Implemented Interfaces:
Scope

public class CustomScope
extends Object
implements Scope

Simple scope implementation which creates object based on a flag.

Author:
Costin Leau, Chris Beams

Field Summary
 boolean createNewScope
           
 
Constructor Summary
CustomScope()
           
 
Method Summary
 Object get(String name, ObjectFactory objectFactory)
           
 String getConversationId()
           
 void registerDestructionCallback(String name, Runnable callback)
           
 Object remove(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

createNewScope

public boolean createNewScope
Constructor Detail

CustomScope

public CustomScope()
Method Detail

get

public Object get(String name,
                  ObjectFactory objectFactory)
Specified by:
get in interface Scope

getConversationId

public String getConversationId()
Specified by:
getConversationId in interface Scope

registerDestructionCallback

public void registerDestructionCallback(String name,
                                        Runnable callback)
Specified by:
registerDestructionCallback in interface Scope

remove

public Object remove(String name)
Specified by:
remove in interface Scope


Copyright ? 2005-2008 Spring Framework. All Rights Reserved.