Class AbstractTopiaPersistenceContextConstructorParameter

java.lang.Object
org.nuiton.topia.persistence.internal.AbstractTopiaPersistenceContextConstructorParameter

public class AbstractTopiaPersistenceContextConstructorParameter extends Object
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 Details

  • Constructor Details

    • AbstractTopiaPersistenceContextConstructorParameter

      public AbstractTopiaPersistenceContextConstructorParameter(HibernateProvider hibernateProvider, TopiaFiresSupport applicationFiresSupport, TopiaIdFactory topiaIdFactory, TopiaHibernateSessionRegistry sessionRegistry, Optional<Duration> slowQueriesThreshold)
      Parameters:
      hibernateProvider - holds the Hibernate configuration and session factory
      applicationFiresSupport - the TopiaFiresSupport from the application context
      topiaIdFactory - the TopiaIdFactory instance created according to the application's configuration
      sessionRegistry - hibernate session registry
      slowQueriesThreshold - configures after which delay a query is considered as slow
  • Method Details