public final class OciConfigConfigSource extends Object implements ConfigSource
ConfigSource implementation that is backed by a ConfigFileAuthenticationDetailsProvider.CONFIG_ORDINAL| Constructor and Description |
|---|
OciConfigConfigSource()
Creates a new
OciConfigConfigSource. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this
OciConfigConfigSource. |
int |
getOrdinal()
Returns the ordinal of this
OciConfigConfigSource. |
Map<String,String> |
getProperties()
Returns a
Map consisting of all property names and their
values that this OciConfigConfigSource knows about at the
time that this method is invoked. |
String |
getValue(String propertyName)
Returns a value for the supplied
propertyName, or null if there is no such value. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPropertyNamespublic OciConfigConfigSource()
OciConfigConfigSource.public String getName()
OciConfigConfigSource.
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.
getName in interface ConfigSourceOciConfigConfigSource; never
nullConfigSource.getName()public int getOrdinal()
OciConfigConfigSource.
This implementation returns 101, which will ensure
values from this ConfigSource implementation will trump
those from /META-INF/microprofile-config.properties but
none other.
getOrdinal in interface ConfigSourceOciConfigConfigSource; 101 by defaultpublic String getValue(String propertyName)
propertyName, or null if there is no such value.
This method may return null.
getValue in interface ConfigSourcepropertyName - the name of the property for which a value
should be returned; may be null in which case null will be returnedpropertyName, or nullpublic Map<String,String> getProperties()
Map consisting of all property names and their
values that this OciConfigConfigSource 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:
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 immutable Map.
getProperties in interface ConfigSourcenull Map of properties known to
this OciConfigConfigSourceIllegalStateException - if there was a problem reading
the OCI config fileConfigSource.getProperties()Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.