Class OracleCloudMetadataResolver

java.lang.Object
io.micronaut.discovery.cloud.oraclecloud.OracleCloudMetadataResolver
All Implemented Interfaces:
io.micronaut.discovery.cloud.ComputeInstanceMetadataResolver

@Singleton @Requires(env="oraclecloud") @Requires(property="micronaut.application.oraclecloud.metadata.enabled",value="true",defaultValue="true") @Requires(classes=io.micronaut.discovery.cloud.ComputeInstanceMetadataResolver.class) @Primary public class OracleCloudMetadataResolver extends Object implements io.micronaut.discovery.cloud.ComputeInstanceMetadataResolver
Resolves ComputeInstanceMetadata for Oracle Cloud Infrastructure.
Since:
1.2.0
Author:
Todd Sharp
  • Constructor Details

    • OracleCloudMetadataResolver

      @Inject public OracleCloudMetadataResolver(io.micronaut.json.JsonMapper jsonMapper, OracleCloudMetadataConfiguration configuration)
      Parameters:
      jsonMapper - To read and write JSON
      configuration - Oracle Cloud Metadata configuration
    • OracleCloudMetadataResolver

      public OracleCloudMetadataResolver()
      Construct with default settings.
  • Method Details

    • resolve

      public Optional<io.micronaut.discovery.cloud.ComputeInstanceMetadata> resolve(io.micronaut.context.env.Environment environment)
      Specified by:
      resolve in interface io.micronaut.discovery.cloud.ComputeInstanceMetadataResolver