Class UcpPoolConfigurationListener
- java.lang.Object
-
- io.micronaut.oraclecloud.atp.jdbc.upc.UcpPoolConfigurationListener
-
- All Implemented Interfaces:
io.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>
,io.micronaut.core.order.Ordered
,java.util.EventListener
@Singleton @Requires(sdk=JAVA,value="11") @Requires(classes=oracle.ucp.jdbc.PoolDataSource.class) @Requires(beans=OracleWalletArchiveProvider.class) @Internal public class UcpPoolConfigurationListener extends java.lang.Object implements io.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>, io.micronaut.core.order.Ordered
UCP connection pool listener that downloads oracle wallet and configures thePoolDataSource
.- Since:
- 2.5
- Author:
- Pavol Gressa
-
-
Field Summary
Fields Modifier and Type Field Description static int
POSITION
-
Constructor Summary
Constructors Modifier Constructor Description protected
UcpPoolConfigurationListener(OracleWalletArchiveProvider walletArchiveProvider, io.micronaut.context.BeanLocator beanLocator)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
javax.sql.DataSource
onCreated(io.micronaut.context.event.BeanCreatedEvent<javax.sql.DataSource> event)
-
-
-
Field Detail
-
POSITION
public static final int POSITION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UcpPoolConfigurationListener
protected UcpPoolConfigurationListener(OracleWalletArchiveProvider walletArchiveProvider, io.micronaut.context.BeanLocator beanLocator)
Default constructor.- Parameters:
walletArchiveProvider
- The wallet archive providerbeanLocator
- The bean locator
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-
onCreated
public javax.sql.DataSource onCreated(io.micronaut.context.event.BeanCreatedEvent<javax.sql.DataSource> event)
- Specified by:
onCreated
in interfaceio.micronaut.context.event.BeanCreatedEventListener<javax.sql.DataSource>
-
-