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 Object
create(ResourceConfig resourceConfig)
Create a Java based ContentHandler instance.String
getType()
-
-
-
Method Detail
-
create
public Object create(ResourceConfig resourceConfig) throws SmooksConfigException
Create a Java based ContentHandler instance.- Specified by:
create
in interfaceContentHandlerFactory<Object>
- Parameters:
resourceConfig
- The ResourceConfig for the JavaContentHandler
to be created.- Returns:
- Java
ContentHandler
instance. - Throws:
SmooksConfigException
- Successfully created ContentHandler, but an error occured during configuration.
-
getType
public String getType()
- Specified by:
getType
in interfaceContentHandlerFactory<Object>
-
-