Class AbstractTopiaPersistenceContextConstructorParameter
java.lang.Object
org.nuiton.topia.persistence.internal.AbstractTopiaPersistenceContextConstructorParameter
Parameter-object design pattern for the
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TopiaFiresSupportprotected final HibernateProviderprotected final TopiaHibernateSessionRegistryprotected final TopiaIdFactory -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTopiaPersistenceContextConstructorParameter(HibernateProvider hibernateProvider, TopiaFiresSupport applicationFiresSupport, TopiaIdFactory topiaIdFactory, TopiaHibernateSessionRegistry sessionRegistry, Optional<Duration> slowQueriesThreshold) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
hibernateProvider
-
applicationFiresSupport
-
topiaIdFactory
-
sessionRegistry
-
slowQueriesThreshold
-
-
Constructor Details
-
AbstractTopiaPersistenceContextConstructorParameter
public AbstractTopiaPersistenceContextConstructorParameter(HibernateProvider hibernateProvider, TopiaFiresSupport applicationFiresSupport, TopiaIdFactory topiaIdFactory, TopiaHibernateSessionRegistry sessionRegistry, Optional<Duration> slowQueriesThreshold) - Parameters:
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 slow
-
-
Method Details
-
getHibernateProvider
-
getApplicationFiresSupport
-
getTopiaIdFactory
-
getSessionRegistry
-
getSlowQueriesThreshold
-