Class HikariPoolConfigurationListener
java.lang.Object
io.micronaut.oraclecloud.atp.jdbc.hikari.HikariPoolConfigurationListener
- All Implemented Interfaces:
io.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration>
,io.micronaut.core.order.Ordered
,EventListener
@Singleton
@Requires(classes=io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration.class) @Requires(sdk=JAVA,value="11")
@Internal
public class HikariPoolConfigurationListener
extends Object
implements io.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration>, io.micronaut.core.order.Ordered
Hikari connection pool listener that downloads oracle wallet and extends the Hikari
DatasourceConfiguration
.- Since:
- 2.5
- Author:
- Pavol Gressa
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
HikariPoolConfigurationListener
(@Nullable OracleWalletArchiveProvider walletArchiveProvider, @NonNull io.micronaut.context.BeanLocator beanLocator) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration
onInitialized
(io.micronaut.context.event.BeanInitializingEvent<io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration> event)
-
Field Details
-
POSITION
public static final int POSITION- See Also:
-
ORACLE_JDBC_ORACLE_DRIVER
- See Also:
-
-
Constructor Details
-
HikariPoolConfigurationListener
protected HikariPoolConfigurationListener(@Nullable @Nullable OracleWalletArchiveProvider walletArchiveProvider, @NonNull @NonNull io.micronaut.context.BeanLocator beanLocator) Default constructor.- Parameters:
walletArchiveProvider
- The wallet archive providerbeanLocator
- The bean locator
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
onInitialized
public io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration onInitialized(io.micronaut.context.event.BeanInitializingEvent<io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration> event) - Specified by:
onInitialized
in interfaceio.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.hikari.DatasourceConfiguration>
-