protected class TestBase.SimpleFeatureProvider extends Object implements FeatureProvider
Modifier and Type | Method and Description |
---|---|
Integer |
getDocumentCount() |
File |
getImageCache()
Returns the folder to use for caching images, only available if
featureImageProcessing is enabled. |
ImageProcessor |
getImageProcessor(File sourceFile,
String targetFile)
Returns an
ImageProcessor for the given sourceFile.To enable this feature, set the Application 's Property featureImageProcessing to
true . |
Consumer<DocumentEvent,DocumentProducer> |
getIndexer()
Returns a
Consumer which consumes DocumentEvent s produced by a DocumentProducer .The
returned Consumer writes to the Lucene-poweredsearch-index of the Site .To enable this feature, set the Application 's Property featureIndexing to true . |
public Consumer<DocumentEvent,DocumentProducer> getIndexer()
FeatureProvider
Consumer
which consumes DocumentEvent
s produced by a DocumentProducer
.The
returned Consumer
writes to the Lucene-poweredSite
.Application
's Property
featureIndexing
to true
.getIndexer
in interface FeatureProvider
Consumer
consuming DocumentEvent
s produced by a DocumentProducer
public Integer getDocumentCount()
public ImageProcessor getImageProcessor(File sourceFile, String targetFile)
FeatureProvider
ImageProcessor
for the given sourceFile.Application
's Property
featureImageProcessing
to
true
.getImageProcessor
in interface FeatureProvider
sourceFile
- the source image (should have an absolute path)targetFile
- the path to the target file to be created, relative to
Platform.Property.IMAGE_CACHE_FOLDER
.ImageProcessor
for the given source filepublic File getImageCache()
FeatureProvider
featureImageProcessing
is enabled.getImageCache
in interface FeatureProvider
FeatureProvider.getImageProcessor(File, String)
Copyright © 2011–2021 aiticon GmbH. All rights reserved.