Class FileModelLoader<ModelType extends Model<?>>


  • public class FileModelLoader<ModelType extends Model<?>>
    extends ModelLoader<ModelType,​FileModelLoader<ModelType>>
    A model loader for models stored in files
    Since:
    21.1
    • Constructor Detail

      • FileModelLoader

        public FileModelLoader​(PgxSession session,
                               oracle.pgx.api.internal.Core core,
                               java.util.function.Supplier<java.lang.String> keystorePathSupplier,
                               java.util.function.Supplier<char[]> keystorePasswordSupplier,
                               ModelKind modelKind,
                               ModelLoader.ModelConstructor<ModelType> constructor)
    • Method Detail

      • path

        public FileModelLoader<ModelType> path​(java.lang.String path)
        Configures the path to the model file
        Parameters:
        path - the path to the model file
        Returns:
        this instance
        Since:
        21.1
      • key

        public FileModelLoader<ModelType> key​(java.lang.String key)
        Configures the encryption key of the model file. Should be specified if the model was stored encrypted.
        Parameters:
        key - the encryption key
        Returns:
        this instance
        Since:
        21.1