[jboss-cvs] JBossAS SVN: r107223 - projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 29 23:55:47 EDT 2010


Author: pferraro
Date: 2010-07-29 23:55:47 -0400 (Thu, 29 Jul 2010)
New Revision: 107223

Modified:
   projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/AtomicMapFactory.java
   projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/DefaultAtomicMapFactory.java
Log:
cosmetic

Modified: projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/AtomicMapFactory.java
===================================================================
--- projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/AtomicMapFactory.java	2010-07-30 03:51:20 UTC (rev 107222)
+++ projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/AtomicMapFactory.java	2010-07-30 03:55:47 UTC (rev 107223)
@@ -26,12 +26,13 @@
 
 /**
  * Mockable facade to {@link org.infinispan.atomic.AtomicMapLookup}.
+ * Used to create {@link AtomicMap} proxies.
  * @author Paul Ferraro
  */
 public interface AtomicMapFactory
 {
    /**
-    * Gets an atomic map from the cache entry with the specified key.
+    * Returns a proxy to an atomic map from the cache entry associated with the specified key.
     * If no such entry exists, a new entry will be created if indicated.
     * @param <K> the cache key type
     * @param <AMK> the atomic map key type
@@ -39,8 +40,8 @@
     * @param cache an infinispan cache
     * @param key a cache key
     * @param create indicates whether or not to create a cache entry if none exists.
-    * @return the atomic map associated with the given key, or null, if no entry exists,
+    * @return a proxy to the atomic map associated with the given key, or null, if no entry exists,
     *         and we did not indicate that a new entry should be created
     */
-   <K, AMK, AMV> AtomicMap<AMK, AMV> get(Cache<K, AtomicMap<AMK, AMV>> cache, K key, boolean create);
+   <K, AMK, AMV> AtomicMap<AMK, AMV> getAtomicMap(Cache<K, AtomicMap<AMK, AMV>> cache, K key, boolean create);
 }

Modified: projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/DefaultAtomicMapFactory.java
===================================================================
--- projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/DefaultAtomicMapFactory.java	2010-07-30 03:51:20 UTC (rev 107222)
+++ projects/cluster/ha-server-ispn/trunk/src/main/java/org/jboss/ha/ispn/atomic/DefaultAtomicMapFactory.java	2010-07-30 03:55:47 UTC (rev 107223)
@@ -33,10 +33,10 @@
 {
    /**
     * {@inheritDoc}
-    * @see org.jboss.ha.ispn.atomic.AtomicMapFactory#get(org.infinispan.Cache, java.lang.Object, boolean)
+    * @see org.jboss.ha.ispn.atomic.AtomicMapFactory#getAtomicMap(org.infinispan.Cache, java.lang.Object, boolean)
     */
    @Override
-   public <K, AMK, AMV> AtomicMap<AMK, AMV> get(Cache<K, AtomicMap<AMK, AMV>> cache, K key, boolean create)
+   public <K, AMK, AMV> AtomicMap<AMK, AMV> getAtomicMap(Cache<K, AtomicMap<AMK, AMV>> cache, K key, boolean create)
    {
       return AtomicMapLookup.getAtomicMap(cache, key, create);
    }



More information about the jboss-cvs-commits mailing list