Package oracle.jdbc.spi
Interface OracleConfigurationParser
public interface OracleConfigurationParser
Defines the contract for configuration file parsers used by configuration file providers.
There are two built-in file providers (file and https) that returns properties from the given location. Those file providers call the methods in this interface to read configuration data from different file types.
For more information or an example of the payload, please refer to:
OracleConfigurationProvider.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic OracleConfigurationParserHelper method to retrieve a provider based on the type.getType()parse(InputStream source, Map<String, String> options) Returns configuration read fromsource
-
Field Details
-
secretProviders
-
-
Method Details
-
parse
Returns configuration read fromsource- Parameters:
source- of the file to be readoptions- contains the key-value pairs captured from an url- Returns:
- Properties read from
source - Throws:
SQLException- if fails to read the source
-
getType
String getType()- Returns:
- type of the file. Usually the file extension, uch as "json" or "yaml".
-
find
Helper method to retrieve a provider based on the type.- Parameters:
providerType-- Returns:
- OracleConfigurationProvider
-