Author: simonetripodi
Date: Thu Oct 28 19:31:17 2010
New Revision: 1028443

URL: http://svn.apache.org/viewvc?rev=1028443&view=rev
Log:
reconfigure() methods made 'synchronized final'
modified reconfigure() javadoc

Modified:
    
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPool.java
    
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
    
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
    
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java

Modified: 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPool.java
URL: 
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPool.java?rev=1028443&r1=1028442&r2=1028443&view=diff
==============================================================================
--- 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPool.java
 (original)
+++ 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPool.java
 Thu Oct 28 19:31:17 2010
@@ -77,11 +77,12 @@ public class StackKeyedObjectPool<K,V> e
     }
 
     /**
-     * Reconfigure the current StackObjectPoolFactory instance.
+     * Allows reconfiguring the current StackObjectPoolFactory instance
+     * without setting the parameters one by one.
      *
      * @param config the {...@link StackObjectPoolConfig} used to configure 
the pool.
      */
-    public void reconfigure(StackObjectPoolConfig config) {
+    public synchronized final void reconfigure(StackObjectPoolConfig config) {
         if (config == null) {
             throw new IllegalArgumentException("config must not be null");
         }

Modified: 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
URL: 
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java?rev=1028443&r1=1028442&r2=1028443&view=diff
==============================================================================
--- 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
 (original)
+++ 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackKeyedObjectPoolFactory.java
 Thu Oct 28 19:31:17 2010
@@ -58,11 +58,12 @@ public class StackKeyedObjectPoolFactory
     }
 
     /**
-     * Reconfigure the current StackObjectPoolFactory instance.
+     * Allows reconfiguring the current StackObjectPoolFactory instance
+     * without setting the parameters one by one.
      *
      * @param config the {...@link StackObjectPoolConfig} used to configure 
the pool.
      */
-    public void reconfigure(StackObjectPoolConfig config) {
+    public synchronized final void reconfigure(StackObjectPoolConfig config) {
         if (config == null) {
             throw new IllegalArgumentException("config must not be null");
         }

Modified: 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
URL: 
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java?rev=1028443&r1=1028442&r2=1028443&view=diff
==============================================================================
--- 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
 (original)
+++ 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPool.java
 Thu Oct 28 19:31:17 2010
@@ -68,11 +68,12 @@ public class StackObjectPool<T> extends 
     }
 
     /**
-     * Reconfigure the current StackObjectPoolFactory instance.
+     * Allows reconfiguring the current StackObjectPoolFactory instance
+     * without setting the parameters one by one.
      *
      * @param config the {...@link StackObjectPoolConfig} used to configure 
the pool.
      */
-    public void reconfigure(StackObjectPoolConfig config) {
+    public synchronized final void reconfigure(StackObjectPoolConfig config) {
         if (config == null) {
             throw new IllegalArgumentException("config must not be null");
         }

Modified: 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java
URL: 
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java?rev=1028443&r1=1028442&r2=1028443&view=diff
==============================================================================
--- 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java
 (original)
+++ 
commons/proper/pool/trunk/src/java/org/apache/commons/pool2/impl/StackObjectPoolFactory.java
 Thu Oct 28 19:31:17 2010
@@ -57,11 +57,12 @@ public class StackObjectPoolFactory<T> i
     }
 
     /**
-     * Reconfigure the current StackObjectPoolFactory instance.
+     * Allows reconfiguring the current StackObjectPoolFactory instance
+     * without setting the parameters one by one.
      *
      * @param config the {...@link StackObjectPoolConfig} used to configure 
the pool.
      */
-    public void reconfigure(StackObjectPoolConfig config) {
+    public synchronized final void reconfigure(StackObjectPoolConfig config) {
         if (config == null) {
             throw new IllegalArgumentException("config must not be null");
         }


Reply via email to