org.wamblee.persistence
Class InMemoryDetachable<T>

java.lang.Object
  extended by org.wamblee.persistence.InMemoryDetachable<T>
Type Parameters:
T - Type of the detachable.
All Implemented Interfaces:
Serializable, Detachable<T>

public class InMemoryDetachable<T>
extends Object
implements Detachable<T>

Inmemory detachable that simply returns the object passed in. Typiocally used for testing. It does nothing at detach.

See Also:
Serialized Form

Constructor Summary
InMemoryDetachable(T aObject)
          Constructs the detachable.
 
Method Summary
 void detach()
          Detaches the object.
 T get()
          Gets the object, attaching it if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryDetachable

public InMemoryDetachable(T aObject)
Constructs the detachable.

Parameters:
aObject -
Method Detail

detach

public void detach()
Description copied from interface: Detachable
Detaches the object.

Specified by:
detach in interface Detachable<T>

get

public T get()
Description copied from interface: Detachable
Gets the object, attaching it if needed.

Specified by:
get in interface Detachable<T>
Returns:


Copyright © 2011. All Rights Reserved.