[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Thu Jan 18 11:55:19 EST 2007
User: msurtani
Date: 07/01/18 11:55:19
Modified: src/org/jboss/cache CacheFactory.java RegionImpl.java
Log:
JBCACHE-889
Revision Changes Path
1.2 +2 -2 JBossCache/src/org/jboss/cache/CacheFactory.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CacheFactory.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/CacheFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- CacheFactory.java 11 Jan 2007 13:49:07 -0000 1.1
+++ CacheFactory.java 18 Jan 2007 16:55:19 -0000 1.2
@@ -75,7 +75,7 @@
* Ensure that the Configuration you pass in is not used by another cache instance in the same JVM, as this may have untoward
* consequences. {@link org.jboss.cache.config.Configuration#clone()} is your friend.
*
- * @param configuration the {@link Configuration} object that is passed in to configure the {@link Cache}.
+ * @param configuration the {@link Configuration} object that is passed in to setCache the {@link Cache}.
* @return a running {@link Cache} instance
* @throws org.jboss.cache.config.ConfigurationException
* if there are problems with the configuration
@@ -88,7 +88,7 @@
* Ensure that the Configuration you pass in is not used by another cache instance in the same JVM, as this may have untoward
* consequences. {@link org.jboss.cache.config.Configuration#clone()} is your friend.
*
- * @param configuration the {@link Configuration} object that is passed in to configure the {@link Cache}.
+ * @param configuration the {@link Configuration} object that is passed in to setCache the {@link Cache}.
* @param start if true, the cache is started before returning.
* @return an optionally running {@link Cache} instance
* @throws org.jboss.cache.config.ConfigurationException
1.19 +17 -17 JBossCache/src/org/jboss/cache/RegionImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: RegionImpl.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/RegionImpl.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- RegionImpl.java 17 Jan 2007 01:31:06 -0000 1.18
+++ RegionImpl.java 18 Jan 2007 16:55:19 -0000 1.19
@@ -6,10 +6,6 @@
*/
package org.jboss.cache;
-import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.LinkedBlockingQueue;
-import java.util.concurrent.TimeUnit;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jboss.cache.config.EvictionRegionConfig;
@@ -19,6 +15,10 @@
import org.jboss.cache.eviction.NodeEventType;
import org.jboss.cache.util.Util;
+import java.util.concurrent.BlockingQueue;
+import java.util.concurrent.LinkedBlockingQueue;
+import java.util.concurrent.TimeUnit;
+
/**
* Default implementation of a {@link Region}
*
@@ -228,7 +228,7 @@
{
if (log.isTraceEnabled()) log.trace("Instantiating " + className);
EvictionPolicy ep = (EvictionPolicy) Util.loadClass(className).newInstance();
- ep.configure(regionManager.getCache());
+ ep.setCache(regionManager.getCache());
return ep;
}
catch (Exception e)
More information about the jboss-cvs-commits
mailing list