Class OracleCacheSchemaInitializer
java.lang.Object
io.micronaut.cache.oracle.schema.OracleCacheSchemaInitializer
- All Implemented Interfaces:
io.micronaut.context.event.ApplicationEventListener<io.micronaut.runtime.event.ApplicationStartupEvent>, EventListener
@Singleton
@Requires(beans=io.micronaut.cache.oracle.schema.OracleCacheSchemaMigrator.class)
public final class OracleCacheSchemaInitializer
extends Object
implements io.micronaut.context.event.ApplicationEventListener<io.micronaut.runtime.event.ApplicationStartupEvent>
Startup listener delegating Oracle cache schema bootstrap to a manual JDBC executor.
- Since:
- 6.2.0
- Author:
- Davide Cocco
-
Constructor Summary
ConstructorsConstructorDescriptionOracleCacheSchemaInitializer(io.micronaut.context.BeanContext beanContext, OracleCacheDataSourceConfiguration dataSourceConfiguration, io.micronaut.cache.oracle.schema.OracleCacheSchemaMigrator schemaMigrator, List<OracleCacheConfiguration> cacheConfigurations) -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(io.micronaut.runtime.event.ApplicationStartupEvent event) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.context.event.ApplicationEventListener
supports
-
Constructor Details
-
OracleCacheSchemaInitializer
public OracleCacheSchemaInitializer(io.micronaut.context.BeanContext beanContext, OracleCacheDataSourceConfiguration dataSourceConfiguration, io.micronaut.cache.oracle.schema.OracleCacheSchemaMigrator schemaMigrator, List<OracleCacheConfiguration> cacheConfigurations)
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(io.micronaut.runtime.event.ApplicationStartupEvent event) - Specified by:
onApplicationEventin interfaceio.micronaut.context.event.ApplicationEventListener<io.micronaut.runtime.event.ApplicationStartupEvent>
-