Interface OsonProvider

  • All Superinterfaces:
    OracleResourceProvider

    public interface OsonProvider
    extends OracleResourceProvider

    A provider to create an OsonConverter for conversion of POJO to OSON bytes and vice versa.

    The oracle.jdbc.provider.oson connection property identifies the name of a OsonProvider implementation.

    ServiceLoader locates implementations of OsonProvider declared by a META-INF/services/oracle.jdbc.spi.OsonProvider file in the class path. Typically, this file is distributed within a jar file that contains a OsonProvider implementation.

    Since:
    23.5
    • Method Detail

      • getOsonConverter

        OsonConverter getOsonConverter​(java.util.Map<OracleResourceProvider.Parameter,​java.lang.CharSequence> parameterValues)
        Returns the OsonConverter implementation to be used by the driver for conversions of OSON bytes to POJO and vice versa.
        Parameters:
        parameterValues - any parameters required to configure the converter. May be null if no configuration is required.
        Returns:
        instance of the OsonConverter implementation. May be null if instance cannot be created.