You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@apache.org on 2005/12/25 17:21:39 UTC

svn commit: r358984 - /cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/NonThreadSafePoolableComponentHandler.java

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;
     }
 }