comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/cache/CacheFactory.java @ 778:9a828e5a2390

Removed trailing whitespace gnv-artifacts/trunk@851 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 07:58:51 +0000
parents 7fb9441dd8af
children b1f5f2a8840f
comparison
equal deleted inserted replaced
777:8009961db1cb 778:9a828e5a2390
8 8
9 import org.apache.log4j.Logger; 9 import org.apache.log4j.Logger;
10 10
11 /** 11 /**
12 * @author Tim Englich <tim.englich@intevation.de> 12 * @author Tim Englich <tim.englich@intevation.de>
13 * 13 *
14 */ 14 */
15 public class CacheFactory { 15 public class CacheFactory {
16 16
17 /** 17 /**
18 * the logger, used to log exceptions and additonaly information 18 * the logger, used to log exceptions and additonaly information
25 * The singleton Instance of this Factory. 25 * The singleton Instance of this Factory.
26 */ 26 */
27 private static CacheFactory instance = null; 27 private static CacheFactory instance = null;
28 28
29 /** 29 /**
30 * 30 *
31 */ 31 */
32 private CacheManager cacheManager = null; 32 private CacheManager cacheManager = null;
33 33
34 /** 34 /**
35 * Basic-Constructor of this Class 35 * Basic-Constructor of this Class
38 super(); 38 super();
39 } 39 }
40 40
41 /** 41 /**
42 * This Method provides an singleton Instance of this Class. 42 * This Method provides an singleton Instance of this Class.
43 * 43 *
44 * @return an singleton Instance of this Class 44 * @return an singleton Instance of this Class
45 */ 45 */
46 public static CacheFactory getInstance() { 46 public static CacheFactory getInstance() {
47 if (instance == null) { 47 if (instance == null) {
48 instance = new CacheFactory(); 48 instance = new CacheFactory();
50 return instance; 50 return instance;
51 } 51 }
52 52
53 /** 53 /**
54 * Getting the ConnectionPool 54 * Getting the ConnectionPool
55 * 55 *
56 * @return the ConnectionPool 56 * @return the ConnectionPool
57 */ 57 */
58 public Cache getCache() { 58 public Cache getCache() {
59 return this.cacheManager.getCache(CACHENAME); 59 return this.cacheManager.getCache(CACHENAME);
60 } 60 }
61 61
62 /** 62 /**
63 * Initializes the ConnectionPool. Should only be called once on system 63 * Initializes the ConnectionPool. Should only be called once on system
64 * startup 64 * startup
65 * 65 *
66 * @param properties 66 * @param properties
67 * the Properties for the Individual Configuration of the 67 * the Properties for the Individual Configuration of the
68 * ConnectionPool 68 * ConnectionPool
69 */ 69 */
70 public void initializeCache(String configurationFileName) { 70 public void initializeCache(String configurationFileName) {
74 } 74 }
75 } 75 }
76 76
77 /** 77 /**
78 * Checks if the ConnectionPool has already been initialized. 78 * Checks if the ConnectionPool has already been initialized.
79 * 79 *
80 * @return true if the ConnectionPool is initialized. 80 * @return true if the ConnectionPool is initialized.
81 */ 81 */
82 public boolean isInitialized() { 82 public boolean isInitialized() {
83 return this.cacheManager != null; 83 return this.cacheManager != null;
84 } 84 }

http://dive4elements.wald.intevation.org