Class DatabaseSchemaInitializer
java.lang.Object
org.springframework.modulith.events.jdbc.DatabaseSchemaInitializer
- All Implemented Interfaces:
InitializingBean
Initializes the DB schema used to store events
- Author:
- Dmitry Belyaev, Björn Kieling, Oliver Drotbohm
-
Constructor Summary
ConstructorDescriptionDatabaseSchemaInitializer
(JdbcOperations jdbcOperations, ResourceLoader resourceLoader, DatabaseType databaseType) Creates a newDatabaseSchemaInitializer
for the givenJdbcOperations
,ResourceLoader
andDatabaseType
. -
Method Summary
-
Constructor Details
-
DatabaseSchemaInitializer
public DatabaseSchemaInitializer(JdbcOperations jdbcOperations, ResourceLoader resourceLoader, DatabaseType databaseType) Creates a newDatabaseSchemaInitializer
for the givenJdbcOperations
,ResourceLoader
andDatabaseType
.- Parameters:
jdbcOperations
- must not be null.resourceLoader
- must not be null.databaseType
- must not be null.
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-