From 9face31548b1f3569e18b0544dd9972e61cbdfe7 Mon Sep 17 00:00:00 2001 From: radovanradic Date: Wed, 27 Nov 2024 17:33:17 +0100 Subject: [PATCH] Cleanup --- .../connection/OracleClientInfoConnectionCustomizer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/data-jdbc/src/main/java/io/micronaut/data/jdbc/connection/OracleClientInfoConnectionCustomizer.java b/data-jdbc/src/main/java/io/micronaut/data/jdbc/connection/OracleClientInfoConnectionCustomizer.java index 1165b43cfc..94342fa5f5 100644 --- a/data-jdbc/src/main/java/io/micronaut/data/jdbc/connection/OracleClientInfoConnectionCustomizer.java +++ b/data-jdbc/src/main/java/io/micronaut/data/jdbc/connection/OracleClientInfoConnectionCustomizer.java @@ -20,6 +20,7 @@ import io.micronaut.context.annotation.Parameter; import io.micronaut.core.annotation.AnnotationMetadata; import io.micronaut.core.annotation.AnnotationValue; +import io.micronaut.core.annotation.Internal; import io.micronaut.core.annotation.NonNull; import io.micronaut.core.annotation.Nullable; import io.micronaut.core.util.CollectionUtils; @@ -53,7 +54,7 @@ * @since 4.11 */ @EachBean(DataSource.class) -//@Requires(condition = OracleClientInfoCondition.class) +@Internal final class OracleClientInfoConnectionCustomizer implements ConnectionCustomizer { private static final String NAME_MEMBER = "name"; @@ -88,8 +89,8 @@ final class OracleClientInfoConnectionCustomizer implements ConnectionCustomizer private final boolean enabled; - OracleClientInfoConnectionCustomizer(@Nullable DataSource dataSource, - @Parameter DataJdbcConfiguration jdbcConfiguration, + OracleClientInfoConnectionCustomizer(@Parameter DataJdbcConfiguration jdbcConfiguration, + @Nullable DataSource dataSource, ApplicationContext applicationContext, @Nullable ApplicationConfiguration applicationConfiguration) { this.applicationName = applicationConfiguration != null ? applicationConfiguration.getName().orElse(null) : null;