[jbosscache-commits] JBoss Cache SVN: r5564 - core/trunk/src/main/docbook/userguide/en/modules.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon Apr 14 17:09:32 EDT 2008


Author: manik.surtani at jboss.com
Date: 2008-04-14 17:09:32 -0400 (Mon, 14 Apr 2008)
New Revision: 5564

Modified:
   core/trunk/src/main/docbook/userguide/en/modules/basic_api.xml
   core/trunk/src/main/docbook/userguide/en/modules/configuration.xml
   core/trunk/src/main/docbook/userguide/en/modules/deployment.xml
Log:
Updated old DefaultCacheFactory.getInstance() calls to new DefaultCacheFactory()

Modified: core/trunk/src/main/docbook/userguide/en/modules/basic_api.xml
===================================================================
--- core/trunk/src/main/docbook/userguide/en/modules/basic_api.xml	2008-04-14 21:07:25 UTC (rev 5563)
+++ core/trunk/src/main/docbook/userguide/en/modules/basic_api.xml	2008-04-14 21:09:32 UTC (rev 5564)
@@ -91,7 +91,7 @@
       </para>
 
       <programlisting role="JAVA"><![CDATA[
-   CacheFactory factory = DefaultCacheFactory.getInstance();
+   CacheFactory factory = new DefaultCacheFactory();
    Cache cache = factory.createCache();
       ]]></programlisting>
 
@@ -102,7 +102,7 @@
       </para>
 
       <programlisting role="JAVA"><![CDATA[
-   CacheFactory factory = DefaultCacheFactory.getInstance();
+   CacheFactory factory = new DefaultCacheFactory();
    Cache cache = factory.createCache("cache-configuration.xml");
       ]]></programlisting>
 
@@ -112,7 +112,7 @@
       </para>
 
       <programlisting role="JAVA"><![CDATA[
-   CacheFactory factory = DefaultCacheFactory.getInstance();
+   CacheFactory factory = new DefaultCacheFactory();
    Cache cache = factory.createCache("cache-configuration.xml", false);
    Configuration config = cache.getConfiguration();
    config.setClusterName(this.getClusterName());

Modified: core/trunk/src/main/docbook/userguide/en/modules/configuration.xml
===================================================================
--- core/trunk/src/main/docbook/userguide/en/modules/configuration.xml	2008-04-14 21:07:25 UTC (rev 5563)
+++ core/trunk/src/main/docbook/userguide/en/modules/configuration.xml	2008-04-14 21:09:32 UTC (rev 5564)
@@ -153,7 +153,7 @@
          </para>
 
          <programlisting role="JAVA"><![CDATA[
-   CacheFactory factory = DefaultCacheFactory.getInstance();
+   CacheFactory factory = new DefaultCacheFactory();
    Cache cache = factory.createCache("cache-configuration.xml");
          ]]></programlisting>
 
@@ -211,7 +211,7 @@
 
    config.setEvictionConfig(ec);
 
-   CacheFactory factory = DefaultCacheFactory.getInstance();
+   CacheFactory factory = new DefaultCacheFactory();
    Cache cache = factory.createCache(config);
 ]]></programlisting>
 

Modified: core/trunk/src/main/docbook/userguide/en/modules/deployment.xml
===================================================================
--- core/trunk/src/main/docbook/userguide/en/modules/deployment.xml	2008-04-14 21:07:25 UTC (rev 5563)
+++ core/trunk/src/main/docbook/userguide/en/modules/deployment.xml	2008-04-14 21:09:32 UTC (rev 5564)
@@ -442,7 +442,7 @@
             </para>
 
             <programlisting role="JAVA"><![CDATA[
-   CacheFactory factory = DefaultCacheFactory.getInstance();
+   CacheFactory factory = new DefaultCacheFactory();
    // Build but don't start the cache
    // (although it would work OK if we started it)
    Cache cache = factory.createCache("cache-configuration.xml", false);




More information about the jbosscache-commits mailing list