Rule Execution Server API

ilog.rules.xml.util
Class IlrXmlSynchronizer

java.lang.Object
  extended by ilog.rules.xml.util.IlrXmlSynchronizer

public class IlrXmlSynchronizer
extends Object

This class synchronizes all the the public methods of an XML data driver. By default, an XML data driver is not synchronized. A synchronized data driver may be used in a multi-threaded context, which is not advised for a standard driver. Because a driver might modify its related XOM, the synchronization might be extended to this run-time model.


Constructor Summary
IlrXmlSynchronizer()
           
 
Method Summary
static IlrXmlDataDriver createDataDriver(IlrXmlDataDriver driver, boolean xomSynchronized)
          Creates a synchronized data driver built from an XML data driver.
static IlrXmlDocumentDriver createDocumentDriver(IlrXmlDocumentDriver driver, boolean xomSynchronized)
          Creates a synchronized schema driver built from an XML data driver.
static IlrXmlSchemaDriver createSchemaDriver(IlrXmlSchemaDriver driver, boolean xomSynchronized)
          Creates a synchronized schema driver built from an XML data driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlrXmlSynchronizer

public IlrXmlSynchronizer()
Method Detail

createDataDriver

public static IlrXmlDataDriver createDataDriver(IlrXmlDataDriver driver,
                                                boolean xomSynchronized)
Creates a synchronized data driver built from an XML data driver.

Parameters:
driver - The driver to be synchronized.
xomSynchronized - True if the synchronization must take in to account the XOM driver.
Returns:
the synchronized data driver.

createSchemaDriver

public static IlrXmlSchemaDriver createSchemaDriver(IlrXmlSchemaDriver driver,
                                                    boolean xomSynchronized)
Creates a synchronized schema driver built from an XML data driver.

Parameters:
driver - The driver to be synchronized.
xomSynchronized - True if the synchronization must take in to account the XOM driver.
Returns:
the synchronized data driver.

createDocumentDriver

public static IlrXmlDocumentDriver createDocumentDriver(IlrXmlDocumentDriver driver,
                                                        boolean xomSynchronized)
Creates a synchronized schema driver built from an XML data driver.

Parameters:
driver - The driver to be synchronized.
xomSynchronized - True if the synchronization must take in to account the XOM driver.
Returns:
the synchronized data driver.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013