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.

    • Method Detail

      • parse

        @Deprecated
        default java.util.Properties parse​(java.io.InputStream source,
                                           java.util.Map<java.lang.String,​java.lang.String> options)
                                    throws java.sql.SQLException
        Deprecated.
        Returns configuration read from source
        Parameters:
        source - of the file to be read
        options - contains the key-value pairs captured from an url
        Returns:
        Properties read from source
        Throws:
        java.sql.SQLException - if fails to read the source
      • parseConfiguration

        default oracle.jdbc.util.configuration.OracleConfiguration parseConfiguration​(java.io.InputStream source,
                                                                                      java.util.Map<java.lang.String,​java.lang.String> options)
                                                                               throws java.sql.SQLException
        Returns configuration read from source
        Parameters:
        source - of the file to be read
        options - contains the key-value pairs captured from an url
        Returns:
        OracleConfiguration read from source
        Throws:
        java.sql.SQLException - if fails to read the source
      • getType

        java.lang.String getType()
        Returns:
        type of the file. Usually the file extension, uch as "json" or "yaml".
      • find

        static OracleConfigurationParser find​(java.lang.String providerType)
        Helper method to retrieve a provider based on the type.
        Parameters:
        providerType - provider type
        Returns:
        OracleConfigurationProvider