net.sourceforge.mflow.api
Class ContentHandlerFactory

java.lang.Object
  extended bynet.sourceforge.mflow.api.ContentHandlerFactory

public abstract class ContentHandlerFactory
extends java.lang.Object

Author:
carrd

Constructor Summary
ContentHandlerFactory()
           
 
Method Summary
abstract  ContentHandler createContentHandler(javax.activation.DataHandler aDataHandler)
          Creates an instance of ContentHandler with the given arguments
abstract  ContentHandler createContentHandler(javax.activation.DataSource aDataSource)
          Creates an instance of ContentHandler with the given arguments
abstract  ContentHandler createContentHandler(java.lang.Object obj, java.lang.String mimeType)
          Creates an instance of ContentHandler with the given arguments
static ContentHandlerFactory getInstance()
           
protected  void register(ContentHandlerFactory aInstance)
          Sets the passed instance to be returned by getInstance()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHandlerFactory

public ContentHandlerFactory()
Method Detail

register

protected final void register(ContentHandlerFactory aInstance)
Sets the passed instance to be returned by getInstance()

Parameters:
aInstance - the new instance to use

getInstance

public static ContentHandlerFactory getInstance()
Returns:
an instance of ContentHandlerFactory

createContentHandler

public abstract ContentHandler createContentHandler(java.lang.Object obj,
                                                    java.lang.String mimeType)
Creates an instance of ContentHandler with the given arguments

Parameters:
obj - the content for the ContentHandler
mimeType - the mime type for the ContentHandler
Returns:
a new instance of ContentHandler

createContentHandler

public abstract ContentHandler createContentHandler(javax.activation.DataSource aDataSource)
Creates an instance of ContentHandler with the given arguments

Parameters:
aDataSource - the DataSource to back the ContentHandler
Returns:
a new instance of ContentHandler

createContentHandler

public abstract ContentHandler createContentHandler(javax.activation.DataHandler aDataHandler)
Creates an instance of ContentHandler with the given arguments

Parameters:
aDataHandler - the DataHandler to back the ContentHandler
Returns:
a new instance of ContentHandler


Copyright © 2002-2004 MFlow Group. All Rights Reserved.