comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/cache/CacheFactory.java @ 790:f198e4620546

Added and repaired JavaDoc in cache package. gnv-artifacts/trunk@872 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 31 Mar 2010 09:13:33 +0000
parents c4156275c1e1
children feae2f9d6c6f
comparison
equal deleted inserted replaced
789:0dc115cbef0d 790:f198e4620546
4 import net.sf.ehcache.CacheManager; 4 import net.sf.ehcache.CacheManager;
5 5
6 import org.apache.log4j.Logger; 6 import org.apache.log4j.Logger;
7 7
8 /** 8 /**
9 * The <code>CacheFactory</code> is used to initialize and retrieve Cache.
10 *
9 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> 11 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
10 *
11 */ 12 */
12 public class CacheFactory { 13 public class CacheFactory {
13 14
14 /** 15 /**
15 * the logger, used to log exceptions and additonaly information 16 * the logger, used to log exceptions and additonaly information
58 59
59 /** 60 /**
60 * Initializes the ConnectionPool. Should only be called once on system 61 * Initializes the ConnectionPool. Should only be called once on system
61 * startup 62 * startup
62 * 63 *
63 * @param properties 64 * @param configurationFileName
64 * the Properties for the Individual Configuration of the
65 * ConnectionPool
66 */ 65 */
67 public void initializeCache(String configurationFileName) { 66 public void initializeCache(String configurationFileName) {
68 if (cacheManager == null) { 67 if (cacheManager == null) {
69 cacheManager = new CacheManager(configurationFileName); 68 cacheManager = new CacheManager(configurationFileName);
70 cacheManager.addCache(CACHENAME); 69 cacheManager.addCache(CACHENAME);

http://dive4elements.wald.intevation.org