commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1096205 - /commons/proper/pool/trunk/src/java/org/apache/commons/pool2/BasePoolableObjectFactory.java
Date Sat, 23 Apr 2011 18:40:08 GMT
Author: simonetripodi
Date: Sat Apr 23 18:40:07 2011
New Revision: 1096205

URL: http://svn.apache.org/viewvc?rev=1096205&view=rev
Log:
restored generics to BasePoolableObjectFactory class

Modified:
    commons/proper/pool/trunk/src/java/org/apache/commons/pool2/BasePoolableObjectFactory.java

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool2/BasePoolableObjectFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool2/BasePoolableObjectFactory.java?rev=1096205&r1=1096204&r2=1096205&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool2/BasePoolableObjectFactory.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool2/BasePoolableObjectFactory.java
Sat Apr 23 18:40:07 2011
@@ -29,19 +29,18 @@ package org.apache.commons.pool2;
  * @version $Revision$ $Date$
  * @since Pool 1.0
  */
-public abstract class BasePoolableObjectFactory implements PoolableObjectFactory {
-    
+public abstract class BasePoolableObjectFactory<T> implements PoolableObjectFactory<T>
{
     /**
      * {@inheritDoc}
      */
-    public abstract Object makeObject() throws Exception;
+    public abstract T makeObject() throws Exception;
 
     /**
      *  No-op.
      *  
      *  @param obj ignored
      */
-    public void destroyObject(Object obj)
+    public void destroyObject(T obj)
         throws Exception  {
     }
 
@@ -51,7 +50,7 @@ public abstract class BasePoolableObject
      * @param obj ignored
      * @return <tt>true</tt>
      */
-    public boolean validateObject(Object obj) {
+    public boolean validateObject(T obj) {
         return true;
     }
 
@@ -60,7 +59,7 @@ public abstract class BasePoolableObject
      *  
      *  @param obj ignored
      */
-    public void activateObject(Object obj) throws Exception {
+    public void activateObject(T obj) throws Exception {
     }
 
     /**
@@ -68,7 +67,7 @@ public abstract class BasePoolableObject
      *  
      * @param obj ignored
      */
-    public void passivateObject(Object obj)
+    public void passivateObject(T obj)
         throws Exception {
     }
 }



Mime
View raw message