Class CertificateClientContextConfigurer
java.lang.Object
io.micronaut.oraclecloud.certificates.config.CertificateClientContextConfigurer
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextConfigurer
,io.micronaut.core.order.Ordered
@ContextConfigurer
@Internal
public class CertificateClientContextConfigurer
extends Object
implements io.micronaut.context.ApplicationContextConfigurer
ApplicationContext configurer for the OCI Certificates client.
Marks the Micronaut ApplicationContext as a bootstrap context and sets
oci.clients.certificates.ssl.enabled=true
. This ensures the per-service
client configuration bean ServiceOracleCloudClientConfigurationProperties
named certificates
is created and applied to the OCI Certificates client so SSL and other
client options can be customized under the oci.clients.certificates.*
namespace.
-
Field Summary
Fields inherited from interface io.micronaut.context.ApplicationContextConfigurer
NO_OP
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(io.micronaut.context.ApplicationContextBuilder builder) Configure the context for the OCI Certificates client by enabling the per-service client configuration for thecertificates
service.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.ApplicationContextConfigurer
configure
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Constructor Details
-
CertificateClientContextConfigurer
public CertificateClientContextConfigurer()
-
-
Method Details
-
configure
public void configure(io.micronaut.context.ApplicationContextBuilder builder) Configure the context for the OCI Certificates client by enabling the per-service client configuration for thecertificates
service. Specifically, this setsoci.clients.certificates.ssl.enabled=true
during bootstrap, which causes Micronaut to bind and useServiceOracleCloudClientConfigurationProperties
for the Certificates client.- Specified by:
configure
in interfaceio.micronaut.context.ApplicationContextConfigurer
- Parameters:
builder
- The application context builder
-