public class PromotionEngineHome
extends java.lang.Object
PromotionEngineHome.getEngineInstance(String engineName)
or PromotionEngine.getDefaultEngine()
. And it starts
the process from there. Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Modifier and Type | Method and Description |
---|---|
static PromotionEngine |
createPromotionEngine(org.w3c.dom.Node node,
boolean useAsDefault)
Creates an engine instance from a configuration XML, marks it as the
default promotion engine if
useAsDefault is set to true. |
static PromotionEngine |
createPromotionEngine(java.lang.String configFile,
boolean useAsDefault)
Creates an engine instance from a configuration XML, marks it as the
default promotion engine if
useAsDefault is set to true. |
static PromotionEngine |
getDefaultEngine()
Returns the default promotion engine
|
static PromotionEngine |
getEngineInstance(java.lang.String engineName)
Returns the PromotionEngine instance with the name as specified in
engineName parameter
|
static void |
setDefaultEngine(PromotionEngine aDefaultEngine)
Sets default engine
|
public static final java.lang.String COPYRIGHT
public static PromotionEngine createPromotionEngine(java.lang.String configFile, boolean useAsDefault)
useAsDefault
is set to true.configFile
- configFile the fully qualified path name of the configuration
XML fileuseAsDefault
- boolean
useAsDefault whether this engine should be used as the default
engine or notpublic static final PromotionEngine createPromotionEngine(org.w3c.dom.Node node, boolean useAsDefault)
useAsDefault
is set to true.node
- node the Already parsed configuration XML fileuseAsDefault
- boolean
useAsDefault whether this engine should be used as the default
engine or notpublic static final PromotionEngine getEngineInstance(java.lang.String engineName)
engineName
- the
name of the enginepublic static final PromotionEngine getDefaultEngine()
public static void setDefaultEngine(PromotionEngine aDefaultEngine)
aDefaultEngine
- The default engine to set.