commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r962893 - in /commons/proper/pool/trunk/src/java/org/apache/commons/pool: BaseKeyedObjectPool.java BaseObjectPool.java KeyedObjectPool.java ObjectPool.java
Date Sat, 10 Jul 2010 17:37:27 GMT
Author: psteitz
Date: Sat Jul 10 17:37:27 2010
New Revision: 962893

URL: http://svn.apache.org/viewvc?rev=962893&view=rev
Log:
Deprecated setFactory methods in pool interfaces and base implementations.

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseObjectPool.java
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java?rev=962893&r1=962892&r2=962893&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseKeyedObjectPool.java Sat
Jul 10 17:37:27 2010
@@ -114,6 +114,7 @@ public abstract class BaseKeyedObjectPoo
      * Not supported in this base implementation.
      * Always throws an {@link UnsupportedOperationException},
      * subclasses should override this behavior.
+     * @deprecated to be removed in pool 2.0
      */
     public void setFactory(KeyedPoolableObjectFactory factory) throws IllegalStateException,
UnsupportedOperationException {
         throw new UnsupportedOperationException();

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseObjectPool.java?rev=962893&r1=962892&r2=962893&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseObjectPool.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/BaseObjectPool.java Sat Jul
10 17:37:27 2010
@@ -113,6 +113,7 @@ public abstract class BaseObjectPool imp
      * @param factory the PoolableObjectFactory
      * @throws UnsupportedOperationException
      * @throws IllegalStateException
+     * @deprecated to be removed in pool 2.0
      */
     public void setFactory(PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException
{
         throw new UnsupportedOperationException();

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java?rev=962893&r1=962892&r2=962893&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/KeyedObjectPool.java Sat Jul
10 17:37:27 2010
@@ -223,6 +223,7 @@ public interface KeyedObjectPool {
      * @param factory the {@link KeyedPoolableObjectFactory} used to create new instances.
      * @throws IllegalStateException when the factory cannot be set at this time
      * @throws UnsupportedOperationException when this implementation doesn't support the
operation
+     * @deprecated to be removed in pool 2.0
      */
     void setFactory(KeyedPoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException;
 }

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java?rev=962893&r1=962892&r2=962893&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java (original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/ObjectPool.java Sat Jul 10
17:37:27 2010
@@ -184,6 +184,7 @@ public interface ObjectPool {
      * @param factory the {@link PoolableObjectFactory} used to create new instances.
      * @throws IllegalStateException when the factory cannot be set at this time
      * @throws UnsupportedOperationException if this implementation does not support the
operation
+     * @deprecated to be removed in pool 2.0
      */
     void setFactory(PoolableObjectFactory factory) throws IllegalStateException, UnsupportedOperationException;
 }



Mime
View raw message