use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class MsExcelExtractorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("msExcelExtractor", MsExcelExtractor.class);
msExcelExtractor = container.getComponent("msExcelExtractor");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class MsPowerPointExtractorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("msPowerPointExtractor", MsPowerPointExtractor.class);
msPowerPointExtractor = container.getComponent("msPowerPointExtractor");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class PdfExtractorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("pdfExtractor", //
PdfExtractor.class).singleton("pdfExtractorForPdfPassword", PdfExtractor.class);
pdfExtractor = container.getComponent("pdfExtractor");
pdfExtractorForPdfPassword = container.getComponent("pdfExtractorForPdfPassword");
pdfExtractorForPdfPassword.addPassword(".*test_.*.pdf", "word");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class TextExtractorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer().singleton("textExtractor", TextExtractor.class);
textExtractor = container.getComponent("textExtractor");
}
use of org.codelibs.fess.crawler.container.StandardCrawlerContainer in project fess-crawler by codelibs.
the class TikaExtractorTest method setUp.
@Override
protected void setUp() throws Exception {
super.setUp();
StandardCrawlerContainer container = new StandardCrawlerContainer();
container.singleton("mimeTypeHelper", MimeTypeHelperImpl.class).singleton("tikaExtractor", TikaExtractor.class).<ExtractorFactory>singleton("extractorFactory", ExtractorFactory.class, factory -> {
TikaExtractor tikaExtractor = container.getComponent("tikaExtractor");
factory.addExtractor("text/plain", tikaExtractor);
factory.addExtractor("text/html", tikaExtractor);
});
tikaExtractor = container.getComponent("tikaExtractor");
}
Aggregations