You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by as...@apache.org on 2002/02/12 16:47:55 UTC
cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/access GroupCacheAccess.java
asmuts 02/02/12 07:47:55
Modified: src/java/org/apache/stratum/jcs/access GroupCacheAccess.java
Log:
Simple class to get access to the cache. Should make using JCS much easier.
Most users will only need to use this one class.
Revision Changes Path
1.9 +27 -25 jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/access/GroupCacheAccess.java
Index: GroupCacheAccess.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/access/GroupCacheAccess.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- GroupCacheAccess.java 12 Feb 2002 03:16:48 -0000 1.8
+++ GroupCacheAccess.java 12 Feb 2002 15:47:55 -0000 1.9
@@ -11,28 +11,28 @@
* are met:
*
* 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
+ * notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
*
* 3. The end-user documentation included with the redistribution, if
- * any, must include the following acknowlegement:
- * "This product includes software developed by the
- * Apache Software Foundation (http://www.apache.org/)."
- * Alternately, this acknowlegement may appear in the software itself,
- * if and wherever such third-party acknowlegements normally appear.
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
*
* 4. The names "The Jakarta Project", "Velocity", and "Apache Software
- * Foundation" must not be used to endorse or promote products derived
- * from this software without prior written permission. For written
- * permission, please contact apache@apache.org.
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
- * nor may "Apache" appear in their names without prior written
- * permission of the Apache Group.
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@@ -53,7 +53,6 @@
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/
-
import java.io.Serializable;
import java.util.Collection;
@@ -201,8 +200,8 @@
//////////////////////////////////////////////////
/**
* Allows the user to put an object into a group within a particular cache
- * region. This method sets the object's attributes to the default for
- * the region.
+ * region. This method sets the object's attributes to the default for the
+ * region.
*
*@param key The key name.
*@param group The group name.
@@ -219,7 +218,7 @@
/**
* Allows the user to put an object into a group within a particular cache
- * region. This method allows the object's attributes to be individually
+ * region. This method allows the object's attributes to be individually
* specified.
*
*@param key The key name.
@@ -267,7 +266,8 @@
cacheControl.put( ( Serializable ) groupId, ( Serializable ) attrNameSet );
}
catch ( Exception ioe )
- {}
+ {
+ }
}
@@ -304,15 +304,16 @@
cacheControl.put( groupId, ( Serializable ) attrNameSet, attr );
}
catch ( Exception ioe )
- {}
+ {
+ }
}
///////////////////////////////////////////////////////////////////////
/**
* Gets the groupAttributes attribute of the GroupCacheAccess object.
- * Slighly confusing since the other method conside an "attribute" to be
- * an element of the cache and not the parameters governing an element.
+ * Slighly confusing since the other method conside an "attribute" to be an
+ * element of the cache and not the parameters governing an element.
*
*@param name Description of the Parameter
*@return The Element Attributes for the group
@@ -499,9 +500,10 @@
Set set = getAttributeNameSet( group );
Object[] ar = set.toArray();
int arS = ar.length;
- for ( int i = 0; i < arS; i++ ) {
- removeAttribute( ( String )ar[i], group );
- //System.out.println( ( String )ar[i] );
+ for ( int i = 0; i < arS; i++ )
+ {
+ removeAttribute( ( String ) ar[i], group );
+ //System.out.println( ( String )ar[i] );
}
// for ( Enumeration en = getAttributeNames( group ); en.hasMoreElements(); )
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>