org.milyn.delivery
Class JavaContentHandlerFactory
java.lang.Object
org.milyn.delivery.JavaContentHandlerFactory
- All Implemented Interfaces:
- ContentHandler, ContentHandlerFactory
public class JavaContentHandlerFactory
- extends Object
- implements ContentHandlerFactory
Java ContentHandler instance creator.
Java-based ContentHandler implementations should contain a public
constructor that takes a SmooksResourceConfiguration instance as a parameter.
- Author:
- tfennelly
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaContentHandlerFactory
public JavaContentHandlerFactory()
create
public ContentHandler create(SmooksResourceConfiguration resourceConfig)
throws SmooksConfigurationException,
InstantiationException
- Create a Java based ContentHandler instance.
- Specified by:
create in interface ContentHandlerFactory
- Parameters:
resourceConfig - The SmooksResourceConfiguration for the Java ContentHandler
to be created.
- Returns:
- Java
ContentHandler instance.
- Throws:
SmooksConfigurationException - Successfully created ContentHandler, but an error occured during configuration.
InstantiationException - Unable to create ContentHandler instance.
Copyright © 2008. All Rights Reserved.