public class DefaultPromotionContextFactory extends java.lang.Object implements PromotionContextFactory
PromotionContextFactory
implementation. It
provides a convenient way to generate promotion context instance(s) based on
input promotion engine and its associated promotion argument.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
DefaultPromotionContextFactory()
Constructor
|
Modifier and Type | Method and Description |
---|---|
PromotionContext |
createContext(PromotionEngine engine,
PromotionArgument argument)
Creates PromotionContext.
|
void |
fromXML(org.w3c.dom.Node node)
Transforms the XML node into its corresponding real Object.
|
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public DefaultPromotionContextFactory()
public PromotionContext createContext(PromotionEngine engine, PromotionArgument argument)
PromotionContextFactory
createContext
in interface PromotionContextFactory
engine
- the engine that is invoked.argument
- invocation argument of promotion argumentPromotionContextFactory.createContext(com.ibm.commerce.marketing.promotion.runtime.PromotionEngine,
com.ibm.commerce.marketing.promotion.runtime.PromotionArgument)
public void fromXML(org.w3c.dom.Node node) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
node
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(Node)
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()