org.sourceforge.jemm
Class Session

java.lang.Object
  extended by org.sourceforge.jemm.Session

public final class Session
extends java.lang.Object

Author:
Rory Graves, Paul Keeble

Method Summary
static Store getActiveStore()
          Return a reference to the current active JEMMStore
static java.lang.Object getRoot(java.lang.String rootName)
           
static void setRoot(java.lang.String rootName, java.lang.Object newRootObject)
           
static java.lang.Object setRootIfNull(java.lang.String rootName, java.lang.Object newRootObject)
           
static void setStore(Store store)
          Set the currently active store.
static void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setStore

public static void setStore(Store store)
Set the currently active store.

Parameters:
store - The store to make active.

shutdown

public static void shutdown()

getRoot

public static java.lang.Object getRoot(java.lang.String rootName)

setRoot

public static void setRoot(java.lang.String rootName,
                           java.lang.Object newRootObject)

setRootIfNull

public static java.lang.Object setRootIfNull(java.lang.String rootName,
                                             java.lang.Object newRootObject)

getActiveStore

public static Store getActiveStore()
Return a reference to the current active JEMMStore

Returns:
The current active JEMMStore or null if no store is active.


Copyright © 2009. All Rights Reserved.