Package org.smooks.engine.delivery
Class JavaContentHandlerFactory
- java.lang.Object
-
- org.smooks.engine.delivery.JavaContentHandlerFactory
-
- All Implemented Interfaces:
ContentHandler,ContentHandlerFactory<Object>
public class JavaContentHandlerFactory extends Object implements ContentHandlerFactory<Object>
Java ContentHandler instance creator. Java-based ContentHandler implementations should contain a public constructor that takes a ResourceConfig instance as a parameter.- Author:
- tfennelly
-
-
Constructor Summary
Constructors Constructor Description JavaContentHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectcreate(ResourceConfig resourceConfig)Create a Java based ContentHandler instance.StringgetType()
-
-
-
Method Detail
-
create
public Object create(ResourceConfig resourceConfig) throws SmooksConfigException
Create a Java based ContentHandler instance.- Specified by:
createin interfaceContentHandlerFactory<Object>- Parameters:
resourceConfig- The ResourceConfig for the JavaContentHandlerto be created.- Returns:
- Java
ContentHandlerinstance. - Throws:
SmooksConfigException- Successfully created ContentHandler, but an error occured during configuration.
-
getType
public String getType()
- Specified by:
getTypein interfaceContentHandlerFactory<Object>
-
-