Interface TopiaConfiguration

All Superinterfaces:
JdbcConfiguration, Serializable
All Known Implementing Classes:
BeanTopiaConfiguration

public interface TopiaConfiguration extends JdbcConfiguration
Configuration needed to instantiate a TopiaApplicationContext. Please use an instance of TopiaConfigurationBuilder to build a new TopiaConfiguration.
Since:
3.0
Author:
Brendan Le Ny (Code Lutin), Arnaud Thimel (Code Lutin)
  • Method Details

    • isInitSchema

      boolean isInitSchema()
      You can set it to false if you don't want Topia to deal with the schema (you keep it up to date with your own sql file).
      Returns:
      true by default
      Since:
      3.0
    • isValidateSchema

      boolean isValidateSchema()
      If true, ToPIA will validate schema against model upon starting. ToPIA will raise a SchemaValidationTopiaException if the schema is not suitable for ToPIA to run fine.
      Returns:
      FIXME
      Since:
      3.0
    • getTopiaIdFactory

      TopiaIdFactory getTopiaIdFactory()
      Configuration directive to change topia Ids generation strategy.
      Returns:
      FIXME
      Since:
      3.0
    • getSchemaName

      String getSchemaName()
    • getHibernateExtraConfiguration

      Map<String,String> getHibernateExtraConfiguration()
      Topia will automatically generate an Hibernate configuration for you based on the different element of this TopiaConfiguration. However, you can tune Hibernate by adding Hibernate configuration directive to this Map. We highly recommend you to use constants in HibernateAvailableSettings as keys of the map. You MUST NOT pass SchemaToolingSettings.HBM2DDL_AUTO since ToPIA will use validate. If you want use it, have a look at HibernateTopiaMigrationService
      Returns:
      a map containing hibernate configuration directives that ToPIA will use when it will instantiate Hibernate.
    • getDeclaredServices

      Map<String,Class<? extends TopiaService>> getDeclaredServices()
    • getDeclaredServicesConfiguration

      Map<String,Map<String,String>> getDeclaredServicesConfiguration()
    • isUseHikariForJdbcConnectionPooling

      boolean isUseHikariForJdbcConnectionPooling()
      If you want to favor using HikariCP as a connection pool.
    • getSlowQueriesThreshold

      Optional<Duration> getSlowQueriesThreshold()
      Delay after which Topia should consider a query as slow then log a warn.