Class OciConfigConfigSource
- java.lang.Object
-
- io.helidon.integrations.cdi.oci.objectstorage.OciConfigConfigSource
-
- All Implemented Interfaces:
ConfigSource
@Deprecated(forRemoval=true, since="2.43") public final class OciConfigConfigSource extends Object implements ConfigSource
Deprecated, for removal: This API element is subject to removal in a future version.Please see theio.helidon.integrations.cdi.oci.OciExtension
class for more information.AConfigSource
implementation that is backed by aConfigFileAuthenticationDetailsProvider
.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
CONFIG_ORDINAL, DEFAULT_ORDINAL
-
-
Constructor Summary
Constructors Constructor Description OciConfigConfigSource()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newOciConfigConfigSource
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of thisOciConfigConfigSource
.int
getOrdinal()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the ordinal of thisOciConfigConfigSource
.Map<String,String>
getProperties()
Deprecated, for removal: This API element is subject to removal in a future version.Returns aMap
consisting of all property names and their values that thisOciConfigConfigSource
knows about at the time that this method is invoked.String
getValue(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a value for the suppliedpropertyName
, ornull
if there is no such value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.microprofile.config.spi.ConfigSource
getPropertyNames
-
-
-
-
Constructor Detail
-
OciConfigConfigSource
public OciConfigConfigSource()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newOciConfigConfigSource
.
-
-
Method Detail
-
getName
public String getName()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of thisOciConfigConfigSource
.This method never returns
null
.This method returns the same value every time it is invoked.
Overrides of this method must not return
null
.Overrides of this method must return the same value every time they are invoked.
The default return value of this method is subject to change without notice.
- Specified by:
getName
in interfaceConfigSource
- Returns:
- the name of this
OciConfigConfigSource
; nevernull
- See Also:
ConfigSource.getName()
-
getOrdinal
public int getOrdinal()
Deprecated, for removal: This API element is subject to removal in a future version.Returns the ordinal of thisOciConfigConfigSource
.This implementation returns
101
, which will ensure values from thisConfigSource
implementation will trump those from/META-INF/microprofile-config.properties
but none other.- Specified by:
getOrdinal
in interfaceConfigSource
- Returns:
- the ordinal of this
OciConfigConfigSource
;101
by default
-
getValue
public String getValue(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.Returns a value for the suppliedpropertyName
, ornull
if there is no such value.This method may return
null
.- Specified by:
getValue
in interfaceConfigSource
- Parameters:
propertyName
- the name of the property for which a value should be returned; may benull
in which casenull
will be returned- Returns:
- a value for the supplied
propertyName
, ornull
-
getProperties
public Map<String,String> getProperties()
Deprecated, for removal: This API element is subject to removal in a future version.Returns aMap
consisting of all property names and their values that thisOciConfigConfigSource
knows about at the time that this method is invoked.This method never returns
null
.The returned
Map
is immutable and safe for concurrent use by multiple threads.This method may return different
Map
instances when invoked at different times.The returned
Map
, if non-empty, is guaranteed to contain at least the following keys:- oci.auth.fingerprint
- oci.auth.passphraseCharacters
- oci.auth.tenancy
- oci.auth.user
The MicroProfile Config specification does not give any guidance on whether the return value of an implementation of the
ConfigSource.getProperties()
method should be immutable and/or threadsafe. This implementation returns an immutableMap
.- Specified by:
getProperties
in interfaceConfigSource
- Returns:
- a non-
null
Map
of properties known to thisOciConfigConfigSource
- Throws:
IllegalStateException
- if there was a problem reading the OCI config file- See Also:
ConfigSource.getProperties()
-
-