From: Bela B. <be...@us...> - 2004-01-16 17:20:23
|
User: belaban Date: 04/01/16 09:20:22 Modified: src/main/org/jboss/cache/loader CacheLoader.java Log: added setCache() Revision Changes Path 1.3 +12 -2 jboss-cache/src/main/org/jboss/cache/loader/CacheLoader.java Index: CacheLoader.java =================================================================== RCS file: /cvsroot/jboss/jboss-cache/src/main/org/jboss/cache/loader/CacheLoader.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- CacheLoader.java 16 Jan 2004 05:35:56 -0000 1.2 +++ CacheLoader.java 16 Jan 2004 17:20:22 -0000 1.3 @@ -1,6 +1,8 @@ package org.jboss.cache.loader; import org.jboss.cache.Fqn; +import org.jboss.cache.TreeCache; +import org.jboss.system.Service; import java.util.Map; @@ -8,9 +10,17 @@ * Implementations need to load an object given a key from secondary storage, or store an object under a given * key in secondary storage (e.g. DB, filesystem). * @author Bela Ban Oct 31, 2003 - * @version $Id: CacheLoader.java,v 1.2 2004/01/16 05:35:56 belaban Exp $ + * @version $Id: CacheLoader.java,v 1.3 2004/01/16 17:20:22 belaban Exp $ */ -public interface CacheLoader { +public interface CacheLoader extends Service { + + /** + * This method allows the CacheLoader to set the TreeCache, therefore allowing the CacheLoader to invoke + * methods of the TreeCache. It can also use the TreeCache to fetch configuration information. Alternatively, + * the CacheLoader could maintain its own configuration + * @param c + */ + void setCache(TreeCache c); /** * Loads all keys and values from the persistent store, given a key |