Class UcpPoolConfigurationListener
java.lang.Object
io.micronaut.oraclecloud.atp.jdbc.ucp.UcpPoolConfigurationListener
- All Implemented Interfaces:
io.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration>
,io.micronaut.core.order.Ordered
,EventListener
@Singleton
@Requires(classes=oracle.ucp.jdbc.PoolDataSource.class)
@Internal
public class UcpPoolConfigurationListener
extends Object
implements io.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration>, io.micronaut.core.order.Ordered
UCP connection pool listener that downloads oracle wallet and configures the
PoolDataSource
.- Since:
- 2.5
- Author:
- Pavol Gressa
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ModifierConstructorDescriptionprotected
UcpPoolConfigurationListener
(@Nullable OracleWalletArchiveProvider walletArchiveProvider, @NonNull io.micronaut.context.BeanLocator beanLocator) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
getOrder()
io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration
onInitialized
(io.micronaut.context.event.BeanInitializingEvent<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration> event)
-
Field Details
-
POSITION
public static final int POSITION- See Also:
-
-
Constructor Details
-
UcpPoolConfigurationListener
protected UcpPoolConfigurationListener(@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.ucp.DatasourceConfiguration onInitialized(io.micronaut.context.event.BeanInitializingEvent<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration> event) - Specified by:
onInitialized
in interfaceio.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration>
-