Author: tv
Date: Sat Feb 22 19:36:12 2014
New Revision: 1570887
URL: http://svn.apache.org/r1570887
Log:
Update documentation to reflect generics and API changes
Modified:
commons/proper/jcs/trunk/src/changes/changes.xml
commons/proper/jcs/trunk/xdocs/ElementAttributes.xml
commons/proper/jcs/trunk/xdocs/ElementEventHandling.xml
commons/proper/jcs/trunk/xdocs/JCSvsEHCache.xml
commons/proper/jcs/trunk/xdocs/UsingJCSBasicWeb.xml
Modified: commons/proper/jcs/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/changes/changes.xml?rev=1570887&r1=1570886&r2=1570887&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/changes/changes.xml (original)
+++ commons/proper/jcs/trunk/src/changes/changes.xml Sat Feb 22 19:36:12 2014
@@ -20,6 +20,9 @@
</properties>
<body>
<release version="2.0" date="unreleased" description="JDK 1.6
based major release">
+ <action dev="tv" type="update">
+ Update documentation to reflect generics and API changes
+ </action>
<action dev="tv" type="remove">
Remove dependency on commons-lang3
</action>
Modified: commons/proper/jcs/trunk/xdocs/ElementAttributes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/xdocs/ElementAttributes.xml?rev=1570887&r1=1570886&r2=1570887&view=diff
==============================================================================
--- commons/proper/jcs/trunk/xdocs/ElementAttributes.xml (original)
+++ commons/proper/jcs/trunk/xdocs/ElementAttributes.xml Sat Feb 22 19:36:12
2014
@@ -145,7 +145,7 @@ jcs.default.elementattributes.IsLateral=
</p>
<source>
<![CDATA[
- JCS jcs = JCS.getInstance( "myregion" );
+ CacheAccess<String, String> jcs = JCS.getInstance( "myregion" );
. . .
@@ -165,7 +165,7 @@ jcs.default.elementattributes.IsLateral=
<source>
<![CDATA[
- JCS jcs = JCS.getInstance( "myregion" );
+ CacheAccess<String, String> jcs = JCS.getInstance( "myregion" );
. . .
Modified: commons/proper/jcs/trunk/xdocs/ElementEventHandling.xml
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/xdocs/ElementEventHandling.xml?rev=1570887&r1=1570886&r2=1570887&view=diff
==============================================================================
--- commons/proper/jcs/trunk/xdocs/ElementEventHandling.xml (original)
+++ commons/proper/jcs/trunk/xdocs/ElementEventHandling.xml Sat Feb 22 19:36:12
2014
@@ -161,7 +161,7 @@
</p>
<source>
<![CDATA[
- JCS jcs = JCS.getInstance( "myregion" );
+ CacheAccess<String, String> jcs = JCS.getInstance( "myregion" );
. . .
@@ -179,7 +179,7 @@
</p>
<source>
<![CDATA[
- JCS jcs = JCS.getInstance( "myregion" );
+ CacheAccess<String, String> jcs = JCS.getInstance( "myregion" );
. . .
Modified: commons/proper/jcs/trunk/xdocs/JCSvsEHCache.xml
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/xdocs/JCSvsEHCache.xml?rev=1570887&r1=1570886&r2=1570887&view=diff
==============================================================================
--- commons/proper/jcs/trunk/xdocs/JCSvsEHCache.xml (original)
+++ commons/proper/jcs/trunk/xdocs/JCSvsEHCache.xml Sat Feb 22 19:36:12 2014
@@ -320,7 +320,7 @@ public class JCSvsEHCachePerformanceTest
// maxSize elements that are not eternal. No disk cache is configured.
ICompositeCacheAttributes cattr = new CompositeCacheAttributes();
cattr.setMaxObjects( maxSize );
- JCS jcs = JCS.getInstance( "testJCSvsEHCache", cattr );
+ CacheAccess<String, String> jcs = JCS.getInstance( "testJCSvsEHCache",
cattr );
// run settings
long start = 0;
Modified: commons/proper/jcs/trunk/xdocs/UsingJCSBasicWeb.xml
URL:
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/xdocs/UsingJCSBasicWeb.xml?rev=1570887&r1=1570886&r2=1570887&view=diff
==============================================================================
--- commons/proper/jcs/trunk/xdocs/UsingJCSBasicWeb.xml (original)
+++ commons/proper/jcs/trunk/xdocs/UsingJCSBasicWeb.xml Sat Feb 22 19:36:12 2014
@@ -149,7 +149,7 @@ public class BookVObjManager
{
private static BookVObjManager instance;
private static int checkedOut = 0;
- private static JCS bookCache;
+ private static CacheAccess<String, BookVObj> bookCache;
private BookVObjManager()
{
@@ -218,7 +218,7 @@ public class BookVObjManager
if (fromCache)
{
- vObj = (BookVObj) bookCache.get("BookVObj" + id);
+ vObj = bookCache.get("BookVObj" + id);
}
// Either fromCache was false or the object was not found, so