![JAR search and dependency download from the Maven repository](/logo.png)
fr.whimtrip.ext.jwhtscrapper.impl.ScrapperHtmlAdapterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whimtrip-ext-scrapper Show documentation
Show all versions of whimtrip-ext-scrapper Show documentation
Fully featured highly pluggable and customizable Java scrapping framework
The newest version!
package fr.whimtrip.ext.jwhtscrapper.impl;
import fr.whimtrip.ext.jwhthtmltopojo.HtmlToPojoEngine;
import fr.whimtrip.ext.jwhthtmltopojo.adapter.DefaultHtmlAdapterImpl;
import fr.whimtrip.ext.jwhthtmltopojo.intrf.HtmlAdapter;
import fr.whimtrip.ext.jwhthtmltopojo.intrf.HtmlAdapterFactory;
import fr.whimtrip.ext.jwhtscrapper.service.scoped.ScrapperHtmlAdapter;
/**
* Part of project jwht-scrapper
* Created on 26/07/18
*
*
* {@link HtmlAdapterFactory} implementation that will instanciate
* {@link ScrapperHtmlAdapter} instead of default {@link DefaultHtmlAdapterImpl}.
* This will allow the implementation of many surrounding features.
*
*
* @see ScrapperHtmlAdapter
* @author Louis-wht
* @since 1.0.0
*/
public class ScrapperHtmlAdapterFactory implements HtmlAdapterFactory {
@Override
public HtmlAdapter instanciateAdapter(HtmlToPojoEngine htmlToPojoEngine, Class tClass) {
return new ScrapperHtmlAdapter<>(htmlToPojoEngine, tClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy