org.milyn.delivery
Class JavaContentHandlerFactory

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.milyn.delivery.ContentHandlerFactory
PARAM_RESTYPE
 
Constructor Summary
JavaContentHandlerFactory()
           
 
Method Summary
 ContentHandler create(SmooksResourceConfiguration resourceConfig)
          Create a Java based ContentHandler instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaContentHandlerFactory

public JavaContentHandlerFactory()
Method Detail

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.