/* JFox, the OpenSource J2EE Application Server
 *
 * Copyright (C) 2002 huihoo.com
 * Distributable under GNU LGPL license
 * See the GNU Lesser General Public License for more details.
 */

package org.huihoo.jfox.persistent;

/**
 * 
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */


public interface PersistenterMBean {
  /**
   * Loads the information persisted on the storage media.
   * @see #store
   */
  public Object load(Object identity) throws Exception;

  /**
   * Store the given information to the storage media.
   * @see #load
   */
  public void store(Object identity, Object data) throws Exception;

}
