All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.l4.lect.PipelineAssembly Maven / Gradle / Ivy

package se.l4.lect;

/**
 * Assembly interface for creating pipelines, used to support both
 * {@link PipelineBuilder} and {@link PipelineRunner}.
 *
 * @author Andreas Holstenson
 *
 * @param 
 */
public interface PipelineAssembly>
{
	/**
	 * Set the function used to create the parser. Usually retrieved via a
	 * static method of the instance you wish to use.
	 *
	 * 
	 * builder.language(ICULanguageParser.forLocale(Locale.ENGLISH))
	 * 
* * @see ICULanguage#forLocale(java.util.Locale) * @param factory * @return */ Self language(LanguageFactory factory); /** * Add a handler to the pipeline. * * @param handler * @return */ Self with(Handler handler); /** * Add a handler to the pipeline, to be constructed when processing begins. * * @param handler * @return */ Self with(HandlerFactory handler); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy