org.huihoo.jfox.persistent
Class FilePersistenter

java.lang.Object
  extended byorg.huihoo.jfox.persistent.AbstractPersistenter
      extended byorg.huihoo.jfox.persistent.FilePersistenter
All Implemented Interfaces:
MxRegistration, Persistenter

public class FilePersistenter
extends AbstractPersistenter


Field Summary
static ObjectName DEFAULT_OBJECTNAME
           
 
Fields inherited from class org.huihoo.jfox.persistent.AbstractPersistenter
server
 
Constructor Summary
FilePersistenter()
           
 
Method Summary
 java.lang.Object load(java.lang.Object identity)
          Loads the information persisted on the storage media.
static void main(java.lang.String[] args)
           
 void store(java.lang.Object identity, java.lang.Object data)
          Store the given information to the storage media.
 
Methods inherited from class org.huihoo.jfox.persistent.AbstractPersistenter
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OBJECTNAME

public static ObjectName DEFAULT_OBJECTNAME
Constructor Detail

FilePersistenter

public FilePersistenter()
Method Detail

load

public java.lang.Object load(java.lang.Object identity)
                      throws java.lang.Exception
Description copied from interface: Persistenter
Loads the information persisted on the storage media.

Throws:
java.lang.Exception
See Also:
Persistenter.store(java.lang.Object, java.lang.Object)

store

public void store(java.lang.Object identity,
                  java.lang.Object data)
           throws java.lang.Exception
Description copied from interface: Persistenter
Store the given information to the storage media.

Throws:
java.lang.Exception
See Also:
Persistenter.load(java.lang.Object)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception