Milyn-Smooks Version 0.4

org.milyn.delivery
Class ContentDeliveryUnitCreatorFactory

java.lang.Object
  extended byorg.milyn.delivery.ContentDeliveryUnitCreatorFactory

public class ContentDeliveryUnitCreatorFactory
extends java.lang.Object

ContentDeliveryUnitCreator Factory class.

Creates ContentDeliveryUnitCreator implementations based on the file extension of the <cdres> element "path" attribute in the definition defined in the in the .cdrl files (see CDRConfig and CDRDef).

The ContentDeliveryUnitCreator instances are instanciated using the Spring IoC Container with the bean id attribute values mapping to the file extension as outlined above. The Spring bean definitions file is called "deliveryunit-config.xml" and is loaded from "/deliveryunit-config.xml" through the ContainerResourceLocator implementation for the container in which Smooks is running e.g. ServletResourceLocator in the Servlet container.

Author:
tfennelly

Constructor Summary
ContentDeliveryUnitCreatorFactory(ContainerResourceLocator resourceLocator)
          Public constructor.
 
Method Summary
 ContentDeliveryUnitCreator getInstance(java.lang.String type)
          Get Instance factory method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentDeliveryUnitCreatorFactory

public ContentDeliveryUnitCreatorFactory(ContainerResourceLocator resourceLocator)
Public constructor.

Parameters:
resourceLocator - Container resource locator
Method Detail

getInstance

public ContentDeliveryUnitCreator getInstance(java.lang.String type)
                                       throws UnsupportedContentDeliveryUnitTypeException
Get Instance factory method.

Parameters:
type - TransUnit type (e.g. java, xsl).
Returns:
ContentDeliveryUnitCreator instance.
Throws:
UnsupportedContentDeliveryUnitTypeException

Milyn-Smooks Version 0.4