de.fzj.unicore.wsrflite.persistence
Class PersistenceManager

java.lang.Object
  extended by de.fzj.unicore.wsrflite.persistence.PersistenceManager

public class PersistenceManager
extends Object


Constructor Summary
PersistenceManager()
           
 
Method Summary
static de.fzj.unicore.persist.impl.LockSupport getLockSupport()
          get helper for dealing with locks (a singleton)
static Store getPersist(String serviceName)
          gets the Store instance for the given service
static PersistenceSettings getPersistenceSettings(Class<?> service)
          retrieve the persistence settings for a given service class
static boolean init()
          returns true if the hosting env persists instances Can be activated by setting a property to "true"
static void persist(WSRFInstance inst)
          persist an instance and clear its "dirty" status
static void removePersist(String serviceName)
          removes the Store instance of a WSRF Web Service from the PersistenceManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceManager

public PersistenceManager()
Method Detail

init

public static boolean init()
returns true if the hosting env persists instances Can be activated by setting a property to "true"

Returns:
true if system will persist instances

persist

public static void persist(WSRFInstance inst)
persist an instance and clear its "dirty" status

Parameters:
inst -

getPersist

public static Store getPersist(String serviceName)
gets the Store instance for the given service

Parameters:
serviceName - - the name of the service
Returns:
the Store implementation configured for the given service

getPersistenceSettings

public static PersistenceSettings getPersistenceSettings(Class<?> service)
retrieve the persistence settings for a given service class

Parameters:
serviceClass -
Returns:

removePersist

public static void removePersist(String serviceName)
removes the Store instance of a WSRF Web Service from the PersistenceManager.

Parameters:
serviceName - - the service name

getLockSupport

public static de.fzj.unicore.persist.impl.LockSupport getLockSupport()
get helper for dealing with locks (a singleton)

Returns:
LockSupport


Copyright © 2010. All Rights Reserved.