cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: r358984 - /cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java
Date Sun, 25 Dec 2005 16:21:39 GMT
Author: giacomo
Date: Sun Dec 25 08:21:35 2005
New Revision: 358984

URL: http://svn.apache.org/viewcvs?rev=358984&view=rev
Log:
correct the access to properties

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java?rev=358984&r1=358983&r2=358984&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java
Sun Dec 25 08:21:35 2005
@@ -68,7 +68,7 @@
     /**
      * The maximum size of the pool.
      */
-    protected final int max;
+    private final int max;
 
     /**
      * List of the Poolable instances which are available for use.
@@ -78,12 +78,12 @@
     /**
      * Store the size of the ready list to optimize operations which require this value.
      */
-    protected int readySize;
+    private int readySize;
 
     /**
      * Total number of Poolable instances in the pool
      */
-    protected int size;
+    private int size;
     
     /**
      * Create a PoolableComponentHandler which manages a pool of Components
@@ -243,5 +243,29 @@
      */
     protected void doPut(Object component) throws Exception {
         this.putIntoPool(component);
+    }
+
+    /**
+     * @return Returns the max.
+     */
+    protected int getMax()
+    {
+        return max;
+    }
+
+    /**
+     * @return Returns the readySize.
+     */
+    protected int getReadySize()
+    {
+        return readySize;
+    }
+
+    /**
+     * @return Returns the size.
+     */
+    protected int getSize()
+    {
+        return size;
     }
 }



Mime
View raw message