fr.whimtrip.ext.jwhthtmltopojo.intrf.HtmlAdapterFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whimtrip-ext-htmltopojo Show documentation
Show all versions of whimtrip-ext-htmltopojo Show documentation
Fully featured highly pluggable and customizable Java html to pojo reflection converter
package fr.whimtrip.ext.jwhthtmltopojo.intrf;
import fr.whimtrip.ext.jwhthtmltopojo.DefaultHtmlAdapterFactory;
import fr.whimtrip.ext.jwhthtmltopojo.HtmlToPojoEngine;
import fr.whimtrip.ext.jwhthtmltopojo.adapter.AbstractHtmlFieldImpl;
/**
*
*
* An Html Adapter Factory can help creating custom
* {@link HtmlAdapter} to plug them instead of the default
* implementation provided here {@link AbstractHtmlFieldImpl}
* by the default factory {@link DefaultHtmlAdapterFactory}.
*
*
*
* It can be fetch when creating your {@link HtmlToPojoEngine}
* with method {@link HtmlToPojoEngine#create(HtmlAdapterFactory)}.
*
*
* Part of project jwht-htmltopojo
*
* @author Louis-wht
* @since 1.0.0
*
*/
public interface HtmlAdapterFactory{
/**
* @param htmlToPojoEngine the engine that required the creation of
* a new adapter.
* @param tClass the class for which the adapter shall be created.
* @param the type T of the class to create an {@link HtmlAdapter}
* for.
* @return instanciated HtmlAdater for the submitted {@code tClass}.
*/
HtmlAdapter instanciateAdapter(HtmlToPojoEngine htmlToPojoEngine, Class tClass);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy