Interface PreprocessorFactory

All Known Implementing Classes:
DefaultPreprocessorFactory

public interface PreprocessorFactory

This interface implementation should holding relation between name of data loader type (ex: sql) and custom params preprocessor if relation not set, implementation should present default params preprocessor

ex: (query, params, consumer)-> consumer.apply(query, params)

The default implementation is io.jmix.reports.yarg.reporting.extraction.DefaultPreprocessorFactory

  • Method Details

    • register

      void register(String loaderType, QueryLoaderPreprocessor preprocessor)
      Method for registering query preprocessing by loader type
      Parameters:
      loaderType - loader type ex: sql
      preprocessor - preprocessor implementation
    • processorBy

      QueryLoaderPreprocessor processorBy(String loaderType)
      Parameters:
      loaderType - loader type ex: sql
      Returns:
      preprocessor instance