org.milyn.delivery
Interface ContentDeliveryUnitCreator
- All Known Implementing Classes:
- JavaContentDeliveryUnitCreator, XslContentDeliveryUnitCreator
- public interface ContentDeliveryUnitCreator
ContentDeliveryUnit Factory Method (GoF) Creator interface.
Implementations of this interface are responsible for creating ContentDeliveryUnit instances.
This creation mechanism follows the Gang of Four "Factory Method" design pattern:
The ConcreteCreator implemtations are loaded using ContentDeliveryUnitCreatorFactory
.
- Author:
- tfennelly
- See Also:
TransUnit
,
TransUnitPrototype
create
public ContentDeliveryUnit create(CDRDef cdrDef,
CDRStore cdrarStore)
throws java.lang.InstantiationException
- Create the
ContentDeliveryUnit
instance.
- Parameters:
cdrDef
- The CDRDef for the ContentDeliveryUnit
.cdrarStore
- The CDRStore instance storing the specified unitDef instance.
- Returns:
ContentDeliveryUnit
instance.
- Throws:
java.lang.InstantiationException
- Unable to create ContentDeliveryUnit instance.