001 package net.databinder.hib;
002
003
004 import org.hibernate.SessionFactory;
005
006 /**
007 * Databinder application interface. DataStaticService expects the current Wicket
008 * application to conform to this interface and supply a session factory as needed.
009 * @see Databinder
010 * @author Nathan Hamblen
011 */
012 public interface HibernateApplication {
013 /**
014 * Supply the session factory for the given key. Applications needing only one
015 * session factory may return it without inspecting the key parameter.
016 * @param key or null for the default factory
017 * @return configured Hibernate session factory
018 */
019 SessionFactory getHibernateSessionFactory(Object key);
020 }