public class XmlRuleEngineConfigHolder extends AbstractRuleEngineConfigHolder
Constructor and Description |
---|
XmlRuleEngineConfigHolder() |
XmlRuleEngineConfigHolder(Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
IMRuleExecutionSet |
build()
Builds the config using the internal hold config.
|
protected InputSource |
buildXmlInputSource()
Build XML input source from requested file.
|
String |
getConfigHash()
Retrieves a complexe hashcode of this config, allowing to detect changes.
|
IRuleExecutionSetXMLFactory |
getFactory()
Returns factory instance, depending on requested implementation and compilation level.
|
protected String |
getXmlContent()
Retrieves XML Content from
buildXmlInputSource() if not available, to compute HASH. |
protected InputSource |
getXmlInputSource()
Retrieves XML Content for building : from available XML Content if exists,
or from
buildXmlInputSource() . |
void |
init(Map<String,String> parameters)
Initializes the config holder.
|
public XmlRuleEngineConfigHolder()
public XmlRuleEngineConfigHolder(Map<String,String> parameters) throws MConfigurationException
MConfigurationException
public void init(Map<String,String> parameters) throws MConfigurationException
init
in interface IRuleEngineConfigHolder
init
in class AbstractRuleEngineConfigHolder
MConfigurationException
public String getConfigHash() throws XMLMConfigurationException
IRuleEngineConfigHolder
XMLMConfigurationException
public IMRuleExecutionSet build() throws MConfigurationException
IRuleEngineConfigHolder
MConfigurationException
public IRuleExecutionSetXMLFactory getFactory() throws MConfigurationException
AbstractRuleEngineConfigHolder
getFactory
in interface IRuleEngineConfigHolder
getFactory
in class AbstractRuleEngineConfigHolder
MConfigurationException
protected String getXmlContent() throws XMLMConfigurationException
buildXmlInputSource()
if not available, to compute HASH.XMLMConfigurationException
protected InputSource getXmlInputSource() throws XMLMConfigurationException
buildXmlInputSource()
.XMLMConfigurationException
protected InputSource buildXmlInputSource() throws XMLMConfigurationException
XMLMConfigurationException