FileDocCategorySizeDatePackage
PersistentStore.javaAPI DocGlassfish v2 API3335Fri May 04 22:33:32 BST 2007com.sun.enterprise.admin.common.domains.registry

PersistentStore

public class PersistentStore extends Object implements LockingStore

Fields Summary
private static File
STORE
private static File
LOCK
private LockingStore
state
public static final String
CONFIG_ROOT
public static final String
STORE_NAME
public static final String
LOCK_NAME
Constructors Summary
PersistentStore()

	state = new Unlocked(this);
  
Methods Summary
protected voidfinalize()

	state.unlock();
  
java.io.FilegetLock()

	return LOCK;
  
LockingStoregetState()

	return state;
  
java.io.FilegetStore()

	return STORE;
  
public longlastModified()

	return getStore().lastModified();
  
public voidlock()

	state.lock();
  
public java.lang.ObjectreadObject()

	return state.readObject();
  
voidsetState(LockingStore s)

	state = s;
  
public voidunlock()

	state.unlock();
  
public voidwriteObject(java.lang.Object o)

	state.writeObject(o);