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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(io.micronaut.context.ApplicationContextBuilder builder)
    Configure the context for the OCI Certificates client by enabling the per-service client configuration for the certificates 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 the certificates service. Specifically, this sets oci.clients.certificates.ssl.enabled=true during bootstrap, which causes Micronaut to bind and use ServiceOracleCloudClientConfigurationProperties for the Certificates client.
      Specified by:
      configure in interface io.micronaut.context.ApplicationContextConfigurer
      Parameters:
      builder - The application context builder