Class OracleUcpConfigurator
java.lang.Object
io.micronaut.configuration.jdbc.ucp.OracleUcpConfigurator
@Context
@Internal
@Requires(classes=oracle.ucp.jdbc.PoolDataSource.class) @Requires(beans=OracleUcpConfiguration.class)
public class OracleUcpConfigurator
extends Object
Oracle UCP configuration setting some
oracle.ucp system properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitUcp(@Nullable OracleUcpConfiguration oracleUcpConfiguration) Initializes the Oracle UCP (Universal Connection Pooling) configuration.
-
Constructor Details
-
OracleUcpConfigurator
public OracleUcpConfigurator()
-
-
Method Details
-
initUcp
@PostConstruct public void initUcp(@Nullable @Nullable OracleUcpConfiguration oracleUcpConfiguration) Initializes the Oracle UCP (Universal Connection Pooling) configuration.If the
oracle.ucp.destroyOnReloadsystem property is not set or is empty, this method sets it based on the value of theOracleUcpConfiguration.destroyOnReload()field. This property determines whether the connection pool should be destroyed when the application is reloaded.This initialization helps prevent duplicate connection pool errors that may occur during application reloading.
- Parameters:
oracleUcpConfiguration- The Oracle UCP configuration
-