Added author to all java files with class comments.
[utils] / support / src / main / java / org / wamblee / cache / EhCache.java
index 0dcb2b7a2fcf3907b8d24e60ed363d64b91c9bcf..0df1e61f165edee1e8741536f9960cea318905ea 100644 (file)
@@ -24,12 +24,16 @@ import net.sf.ehcache.Cache;
 import net.sf.ehcache.CacheException;
 import net.sf.ehcache.CacheManager;
 import net.sf.ehcache.Element;
+import net.sf.ehcache.config.Configuration;
+import net.sf.ehcache.config.ConfigurationFactory;
 
 import org.apache.log4j.Logger;
 import org.wamblee.io.InputResource;
 
 /**
  * Cache implemented on top of EhCache.
+ *
+ * @author Erik Brakkee
  */
 public class EhCache<KeyType extends Serializable, ValueType extends Serializable>
         implements org.wamblee.cache.Cache<KeyType, ValueType> {
@@ -61,7 +65,7 @@ public class EhCache<KeyType extends Serializable, ValueType extends Serializabl
             throws IOException, CacheException {
         InputStream is = aResource.getInputStream();
         try {
-            _manager = CacheManager.create(is);
+               _manager = new CacheManager(is);
             _cache = _manager.getCache(aCacheName);
             if (_cache == null) {
                 LOGGER.warn("Creating cache '" + aCacheName