| java.lang.Object sunlabs.brazil.util.PJwrapper
PJwrapper | public class PJwrapper (Code) | | Wrap a pJama invocation, to allow for persistent operation.
pJama is an implementation of orthoginal persistance, allowin session
state to be recovered after server shut-downs.
See here
for more information.
This utility class allows a server application to run with the pJama
persistent VM by dynamically locating and binding the classes at run time.
If pJama is not available, a standard transient implementation is
used instead.
author: Stephen Uhler version: @(#) PJwrapper.java 1.4 99/08/06 12:31:42 |
Method Summary | |
public static String | getError() Return the cause of most recent failure. | public static Object | initStore(String name, Class type) Do a one-time store initialization,
Parameters: The - string name to identify this store Parameters: The - type of the object to be the store root The root object. | public static boolean | isPersistent() See if we are using persistence. | public static boolean | stabilize() Stabilize the store
true if successful. |
getError | public static String getError()(Code) | | Return the cause of most recent failure.
|
initStore | public static Object initStore(String name, Class type)(Code) | | Do a one-time store initialization,
Parameters: The - string name to identify this store Parameters: The - type of the object to be the store root The root object. If one didn't exist, it iscreated with newInstance() |
isPersistent | public static boolean isPersistent()(Code) | | See if we are using persistence.
true, is persistence is enabled. |
stabilize | public static boolean stabilize()(Code) | | Stabilize the store
true if successful. Use getError() to extractreason for failure |
|
|