Rule Execution Server API

com.ibm.rules.engine.load
Class EngineLoader

java.lang.Object
  extended by com.ibm.rules.engine.load.EngineLoader

public class EngineLoader
extends Object

You use an EngineLoader instance to load an EngineDefinition object from an OpenXML document.

Since:
ODM 8.1

Constructor Summary
EngineLoader(File file)
          Creates an EngineLoader instance to load a file.
EngineLoader(File file, ClassLoader XOMClassLoader, EngineService... engineServices)
          Creates an EngineLoader instance to load a file using a ClassLoader with specific EngineServices.
EngineLoader(InputStream inputStream, ClassLoader XOMClassLoader, EngineService... engineServices)
          Creates an EngineLoader instance to load a binary stream using a ClassLoader with specific EngineServices.
 
Method Summary
 EngineDefinition load()
          Creates and loads an EngineDefinition instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EngineLoader

public EngineLoader(File file)
Creates an EngineLoader instance to load a file.

Parameters:
file - The file to load.

EngineLoader

public EngineLoader(File file,
                    ClassLoader XOMClassLoader,
                    EngineService... engineServices)
Creates an EngineLoader instance to load a file using a ClassLoader with specific EngineServices.

Parameters:
file - The file to load.
XOMClassLoader - The class loader to use for loading the XOM classes.
engineServices - Engine services that will be passed to the engine definition constructor.

EngineLoader

public EngineLoader(InputStream inputStream,
                    ClassLoader XOMClassLoader,
                    EngineService... engineServices)
Creates an EngineLoader instance to load a binary stream using a ClassLoader with specific EngineServices.

Parameters:
inputStream - a stream on a DSAR archive,
XOMClassLoader - a classloader instance containing the XOM classes if they aren't present in the current classloader. Could be null.
engineServices - Engine services that will be passed to the engine definition constructor.
Method Detail

load

public EngineDefinition load()
Creates and loads an EngineDefinition instance.

Returns:
An EngineDefinition instance.

Rule Execution Server API

© Copyright IBM Corp. 1987, 2013