public class AbstractTopiaPersistenceContextConstructorParameter extends Object
AbstractTopiaApplicationContext
constructor.
This parameter-object is useful because we can add/change/remove parameters without changing
the constructor signature which is necessary to ensure backward compatibility with XxxPersistenceContext
overridden by the user.| Modifier and Type | Field and Description |
|---|---|
protected TopiaFiresSupport |
applicationFiresSupport |
protected HibernateProvider |
hibernateProvider |
protected TopiaHibernateSessionRegistry |
sessionRegistry |
protected Optional<Duration> |
slowQueriesThreshold |
protected TopiaIdFactory |
topiaIdFactory |
| Constructor and Description |
|---|
AbstractTopiaPersistenceContextConstructorParameter(HibernateProvider hibernateProvider,
TopiaFiresSupport applicationFiresSupport,
TopiaIdFactory topiaIdFactory,
TopiaHibernateSessionRegistry sessionRegistry,
Optional<Duration> slowQueriesThreshold) |
| Modifier and Type | Method and Description |
|---|---|
TopiaFiresSupport |
getApplicationFiresSupport() |
HibernateProvider |
getHibernateProvider() |
TopiaHibernateSessionRegistry |
getSessionRegistry() |
Optional<Duration> |
getSlowQueriesThreshold() |
TopiaIdFactory |
getTopiaIdFactory() |
protected final HibernateProvider hibernateProvider
protected final TopiaFiresSupport applicationFiresSupport
protected final TopiaIdFactory topiaIdFactory
protected final TopiaHibernateSessionRegistry sessionRegistry
public AbstractTopiaPersistenceContextConstructorParameter(HibernateProvider hibernateProvider, TopiaFiresSupport applicationFiresSupport, TopiaIdFactory topiaIdFactory, TopiaHibernateSessionRegistry sessionRegistry, Optional<Duration> slowQueriesThreshold)
hibernateProvider - holds the Hibernate configuration and session factoryapplicationFiresSupport - the TopiaFiresSupport from the application contexttopiaIdFactory - the TopiaIdFactory instance created according to the application's configurationsessionRegistry - hibernate session registryslowQueriesThreshold - configures after which delay a query is considered as slowpublic HibernateProvider getHibernateProvider()
public TopiaFiresSupport getApplicationFiresSupport()
public TopiaIdFactory getTopiaIdFactory()
public TopiaHibernateSessionRegistry getSessionRegistry()
Copyright © 2004–2020 Code Lutin. All rights reserved.