Class DefaultExtractionControllerFactory
java.lang.Object
io.jmix.reports.yarg.reporting.extraction.DefaultExtractionControllerFactory
- All Implemented Interfaces:
ExtractionControllerFactory
public class DefaultExtractionControllerFactory
extends Object
implements ExtractionControllerFactory
Default controller factory implementation
-
Field Summary
Modifier and TypeFieldDescriptionprotected ExtractionController
protected Map<BandOrientation,
ExtractionController> protected ReportLoaderFactory
-
Constructor Summary
ConstructorDescriptionDefaultExtractionControllerFactory
(ReportLoaderFactory loaderFactory) DefaultExtractionControllerFactory
(ReportLoaderFactory loaderFactory, BiFunction<ExtractionControllerFactory, ReportLoaderFactory, ExtractionController> controllerCreator) -
Method Summary
Modifier and TypeMethodDescriptioncontrollerBy
(BandOrientation orientation) void
register
(BandOrientation orientation, BiFunction<ExtractionControllerFactory, ReportLoaderFactory, ExtractionController> controllerCreator) Method for runtime configuring data extraction logic by orientationvoid
setExtractionControllers
(Map<BandOrientation, ExtractionController> extractionControllers)
-
Field Details
-
loaderFactory
-
defaultExtractionController
-
extractionControllerMap
-
-
Constructor Details
-
DefaultExtractionControllerFactory
-
DefaultExtractionControllerFactory
public DefaultExtractionControllerFactory(ReportLoaderFactory loaderFactory, BiFunction<ExtractionControllerFactory, ReportLoaderFactory, ExtractionController> controllerCreator)
-
-
Method Details
-
register
public void register(BandOrientation orientation, BiFunction<ExtractionControllerFactory, ReportLoaderFactory, ExtractionController> controllerCreator) Description copied from interface:ExtractionControllerFactory
Method for runtime configuring data extraction logic by orientation- Specified by:
register
in interfaceExtractionControllerFactory
- Parameters:
orientation
- band orientationcontrollerCreator
- specific creator function for extraction controller
-
controllerBy
- Specified by:
controllerBy
in interfaceExtractionControllerFactory
- Parameters:
orientation
- band orientation- Returns:
- data extraction controller
-
defaultController
- Specified by:
defaultController
in interfaceExtractionControllerFactory
- Returns:
- default data extraction controller
-
getExtractionControllers
-
setExtractionControllers
public void setExtractionControllers(Map<BandOrientation, ExtractionController> extractionControllers)
-