@Singleton @Requires(env="oraclecloud") public class OracleCloudMetadataResolver extends java.lang.Object implements ComputeInstanceMetadataResolver
ComputeInstanceMetadata
for Oracle Cloud Infrastructure.Constructor and Description |
---|
OracleCloudMetadataResolver()
Construct with default settings.
|
OracleCloudMetadataResolver(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
OracleCloudMetadataConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ComputeInstanceMetadata> |
resolve(Environment environment)
Resolves
ComputeInstanceMetadata for the current environment if possible. |
@Inject public OracleCloudMetadataResolver(com.fasterxml.jackson.databind.ObjectMapper objectMapper, OracleCloudMetadataConfiguration configuration)
objectMapper
- To read and write JSONconfiguration
- Oracle Cloud Metadata configurationpublic OracleCloudMetadataResolver()
public java.util.Optional<ComputeInstanceMetadata> resolve(Environment environment)
ComputeInstanceMetadataResolver
ComputeInstanceMetadata
for the current environment if possible.resolve
in interface ComputeInstanceMetadataResolver
environment
- The environmentComputeInstanceMetadata