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
    Modifier and Type
    Field
    Description
    static final int
     

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    UcpPoolConfigurationListener(@Nullable OracleWalletArchiveProvider walletArchiveProvider, @NonNull io.micronaut.context.BeanLocator beanLocator)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration
    onInitialized(io.micronaut.context.event.BeanInitializingEvent<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration> event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • UcpPoolConfigurationListener

      protected UcpPoolConfigurationListener(@Nullable @Nullable OracleWalletArchiveProvider walletArchiveProvider, @NonNull @NonNull io.micronaut.context.BeanLocator beanLocator)
      Default constructor.
      Parameters:
      walletArchiveProvider - The wallet archive provider
      beanLocator - The bean locator
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.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 interface io.micronaut.context.event.BeanInitializedEventListener<io.micronaut.configuration.jdbc.ucp.DatasourceConfiguration>