*/
package org.wamblee.usermgt.hibernate;
+import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
+import net.sf.ehcache.Ehcache;
+
import org.hibernate.SessionFactory;
+import org.wamblee.cache.EhCache;
import org.wamblee.system.core.DefaultProvidedInterface;
import org.wamblee.system.core.DefaultRequiredInterface;
import org.wamblee.system.core.ProvidedInterface;
}
private static Map<RequiredInterface, String> createRequired() {
- Map<RequiredInterface, String> required = new TreeMap<RequiredInterface, String>();
+ Map<RequiredInterface, String> required = new HashMap<RequiredInterface, String>();
required.put(new DefaultRequiredInterface("sessionFactory", SessionFactory.class), "sessionFactory");
return required;
}
private static Map<String, ProvidedInterface> createProvided() {
- Map<String,ProvidedInterface> provided = new TreeMap<String,ProvidedInterface>();
+ Map<String,ProvidedInterface> provided = new HashMap<String,ProvidedInterface>();
+ provided.put("userCache", new DefaultProvidedInterface("cache", EhCache.class));
provided.put(UserSet.class.getName(), new DefaultProvidedInterface("userset", UserSet.class));
provided.put(GroupSet.class.getName(), new DefaultProvidedInterface("groupset", GroupSet.class));
return provided;