net.sf.spif
Class Store

java.lang.Object
  |
  +--net.sf.spif.Store

public final class Store
extends java.lang.Object

The store chain entry point.

This store chain object does nothing else than being a singleton which forwards to whatever is chained to it.

There is no point in extending this class, instead chain functionality to it.

The Store provides static versions of the most used store chain methods. To make this possible, the instance returned is not an instance of store, but of an inner class (DefaultStore). However, this is a techincality which should never make any difference.

Version:
$Id: Store.java,v 1.3 2003/02/13 22:13:42 bratseth Exp $
Author:
Jon S Bratseth

Method Summary
static StoreChain get()
          Returns the singleton instance of this class
static java.lang.Object get(Id id, boolean writable)
          Convenience static method.
static Id put(Id id, java.lang.Object object)
          Convenience static method.
static boolean remove(Id id)
          Convenience static method.
static StoreChain setChained(StoreChain chained)
          Convenience static method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static StoreChain get()
Returns the singleton instance of this class


get

public static java.lang.Object get(Id id,
                                   boolean writable)
Convenience static method. Just like Store.get().get(id,writable)


put

public static Id put(Id id,
                     java.lang.Object object)
Convenience static method. Just like Store.get().put(id,object)


remove

public static boolean remove(Id id)
Convenience static method. Just like Store.get().remove(id)


setChained

public static StoreChain setChained(StoreChain chained)
Convenience static method. Just like Store.get().remove(id)



Spif 1.01 (2003-04-03). http://spif.sf.net