net.sf.spif.ejb
Class StoreSessionAccessor

java.lang.Object
  |
  +--net.sf.spif.ejb.StoreSessionAccessor

public class StoreSessionAccessor
extends java.lang.Object

Accessor for the StoreSession session bean.

Version:
$revision$ $Date: 2003/02/05 22:15:46 $
See Also:
StoreSession, StoreSessionHome, StoreSessionBean

Constructor Summary
StoreSessionAccessor()
           
 
Method Summary
static StoreSessionHome getHome()
          Returns a StoreSessionHome reference from the cache or from the JNDI server if the cache is void.
static StoreSession getRemote()
          Returns a remote StoreSession reference from the cache or by creating from the home.
static void invalidateCache()
          Signals that the entire cache is to be invalidated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreSessionAccessor

public StoreSessionAccessor()
Method Detail

getHome

public static StoreSessionHome getHome()
                                throws ConfigurationException
Returns a StoreSessionHome reference from the cache or from the JNDI server if the cache is void. Uses the initial context accociated with the current thread to lookup the reference.

Returns:
a StoreSessionHome reference
Throws:
ConfigurationException - if the Home cannot be found in the JNDI server

getRemote

public static StoreSession getRemote()
                              throws ConfigurationException
Returns a remote StoreSession reference from the cache or by creating from the home.

Returns:
a StoreSession reference
Throws:
ConfigurationException - if the home of this service cannot be found in the JNDI server

invalidateCache

public static void invalidateCache()
Signals that the entire cache is to be invalidated. The consequence is that all subsequent calls to getCachedObjct returns null



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