public class DefaultHibernateLifecycleInjector extends Object implements HibernateLifecycleInjector
| Constructor and Description |
|---|
DefaultHibernateLifecycleInjector() |
DefaultHibernateLifecycleInjector(boolean registerPostCommitListeneres)
Creates a new lifecycle injector.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doCreateListener(org.hibernate.impl.SessionFactoryImpl sessionFactory,
Esi4JBatchedEventProcessor batchedEventProcessor) |
void |
injectLifecycle(org.hibernate.SessionFactory sessionFactory,
Esi4JBatchedEventProcessor batchedEventProcessor)
Injects a global lifecycle listener into the concrete
SessionFactory |
void |
removeLifecycle(org.hibernate.SessionFactory sessionFactory)
Removes (if possible) lifecycle listeners injected using the inject
method.
|
public DefaultHibernateLifecycleInjector()
public DefaultHibernateLifecycleInjector(boolean registerPostCommitListeneres)
true) or with plain post events (triggered
based on Hibrenate flushing logic).registerPostCommitListeneres - true if post commit listeners will be registered.
false for plain listeners.public void injectLifecycle(org.hibernate.SessionFactory sessionFactory,
Esi4JBatchedEventProcessor batchedEventProcessor)
HibernateLifecycleInjectorSessionFactory implementation.injectLifecycle in interface HibernateLifecycleInjectorpublic void removeLifecycle(org.hibernate.SessionFactory sessionFactory)
HibernateLifecycleInjectorremoveLifecycle in interface HibernateLifecycleInjectorprotected Object doCreateListener(org.hibernate.impl.SessionFactoryImpl sessionFactory, Esi4JBatchedEventProcessor batchedEventProcessor)
Copyright © 2013 Molindo GmbH. All Rights Reserved.