[jboss-cvs] JBossCache/src/org/jboss/cache/loader ...
Manik Surtani
msurtani at jboss.com
Fri Jan 19 09:47:40 EST 2007
User: msurtani
Date: 07/01/19 09:47:40
Modified: src/org/jboss/cache/loader CacheLoader.java
AbstractCacheLoader.java
Log:
Improved Javadocs
Revision Changes Path
1.16 +6 -1 JBossCache/src/org/jboss/cache/loader/CacheLoader.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheLoader.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/CacheLoader.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- CacheLoader.java 15 Jan 2007 16:19:10 -0000 1.15
+++ CacheLoader.java 19 Jan 2007 14:47:40 -0000 1.16
@@ -19,7 +19,7 @@
import java.util.Set;
/**
- * A <code>CacheLoader</code> implementation persists and load keys to and from
+ * A {@link org.jboss.cache.loader.CacheLoader} implementation persists and load keys to and from
* secondary storage, such as a database or filesystem. Typically,
* implementations store a series of keys and values (an entire {@link Map})
* under a single {@link Fqn}. Loading and saving properties of an entire
@@ -31,10 +31,15 @@
* Then {@link #start()} is called. When re-deployed, {@link #stop()} will be
* called, followed by another {@link #start()}. Finally, when shut down,
* {@link #destroy()} is called, after which the loader is unusable.
+ * <p/>
+ * An {@link org.jboss.cache.loader.AbstractCacheLoader} is provided as a convenient starting place
+ * when implementing your own {@link org.jboss.cache.loader.CacheLoader}.
+ * <p/>
*
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
* @see CacheSPI
* @see org.jboss.cache.config.CacheLoaderConfig.IndividualCacheLoaderConfig
+ * @see org.jboss.cache.loader.AbstractCacheLoader
* @since 2.0.0
*/
1.20 +7 -15 JBossCache/src/org/jboss/cache/loader/AbstractCacheLoader.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AbstractCacheLoader.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/AbstractCacheLoader.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- AbstractCacheLoader.java 17 Jan 2007 14:13:06 -0000 1.19
+++ AbstractCacheLoader.java 19 Jan 2007 14:47:40 -0000 1.20
@@ -25,7 +25,13 @@
import java.util.Set;
/**
- * A convenience abstract implementation of a {@link CacheLoader}
+ * A convenience abstract implementation of a {@link CacheLoader}. Specific methods to note are methods like
+ * {@link #storeState(org.jboss.cache.Fqn,java.io.ObjectInputStream)}, {@link #loadState(org.jboss.cache.Fqn,java.io.ObjectOutputStream)},
+ * {@link #storeEntireState(java.io.ObjectInputStream)} and {@link #loadEntireState(java.io.ObjectOutputStream)} which have convenience
+ * implementations here.
+ * <p/>
+ * Also useful to note is the implementation of {@link #put(java.util.List)}, used during the prepare phase of a transaction.
+ * <p/>
*
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
* @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
@@ -143,20 +149,6 @@
}
/**
- * Checks the ERegionManager for a classloader registered for the
- * given, and if found sets it as the TCCL
- *
- * @param subtree
- */
- protected void setUnmarshallingClassLoader(Fqn subtree)
- {
- if (regionManager != null)
- {
- regionManager.setContextClassLoaderAsCurrent(subtree);
- }
- }
-
- /**
* Do a preorder traversal: visit the node first, then the node's children
*
* @param fqn Start node
More information about the jboss-cvs-commits
mailing list