01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.persistent;
09:
10: /**
11: *
12: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
13: */
14:
15: public interface PersistenterMBean {
16: /**
17: * Loads the information persisted on the storage media.
18: * @see #store
19: */
20: public Object load(Object identity) throws Exception;
21:
22: /**
23: * Store the given information to the storage media.
24: * @see #load
25: */
26: public void store(Object identity, Object data) throws Exception;
27:
28: }
|