KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > cache > loader > CacheLoaderAop


1 package org.jboss.cache.loader;
2
3 import org.jboss.cache.Fqn;
4
5 /**
6  * Responsible for storing and retrieving objects to/from secondary storage.
7  *
8  * @author Bela Ban Oct 31, 2003
9  * @version $Id: CacheLoaderAop.java,v 1.1.1.1 2005/03/31 10:15:05 belaban Exp $
10  */

11 public interface CacheLoaderAop extends CacheLoader {
12
13    /**
14     * Loads an object from a persistent store.
15     *
16     * @param name The key under which the object is stored
17     * @return The object
18     * @throws Exception Thrown if the object cannot be loaded
19     */

20    Object JavaDoc loadObject(Fqn name) throws Exception JavaDoc;
21
22    /**
23     * Stores an object under a given key in the persistent store. If the object is already present, it will
24     * be overwritten
25     *
26     * @param name
27     * @param pojo
28     * @throws Exception
29     */

30    void storeObject(Fqn name, Object JavaDoc pojo) throws Exception JavaDoc;
31
32    /**
33     * Removes the object with the given key from the persistent store.
34     *
35     * @param name
36     * @throws Exception
37     */

38    void removeObject(Fqn name) throws Exception JavaDoc;
39 }
40
Popular Tags