net.sourceforge.hivetranse.transaction.hibernate3
Class SessionProxyFactory
java.lang.Object
net.sourceforge.hivetranse.transaction.hibernate3.SessionProxyFactory
- All Implemented Interfaces:
- java.util.EventListener, org.apache.hivemind.events.RegistryShutdownListener, org.apache.hivemind.ServiceImplementationFactory
public class SessionProxyFactory
- extends java.lang.Object
- implements org.apache.hivemind.ServiceImplementationFactory, org.apache.hivemind.events.RegistryShutdownListener
This service creates Proxys to Hibernate Sessions.
Each service built by this factory must have one configuration parameter
indicating the hibernate configuration file to be used for building the
Hibernate SessionFactory.
ServiceModel must be singleton
- Author:
- Jean-Francois Poilpret
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionProxyFactory
public SessionProxyFactory(org.apache.commons.logging.Log logger,
SessionFactoryBuilder builder,
TransactionService txService)
registryDidShutdown
public void registryDidShutdown()
- Specified by:
registryDidShutdown
in interface org.apache.hivemind.events.RegistryShutdownListener
createCoreServiceImplementation
public java.lang.Object createCoreServiceImplementation(org.apache.hivemind.ServiceImplementationFactoryParameters factoryParams)
- Specified by:
createCoreServiceImplementation
in interface org.apache.hivemind.ServiceImplementationFactory
buildSessionFactory
protected org.hibernate.SessionFactory buildSessionFactory(org.apache.commons.logging.Log logger,
java.lang.String id,
SessionFactoryContribution contrib)
closeSessionFactory
protected void closeSessionFactory(java.lang.String id,
org.hibernate.SessionFactory factory)