org.openxml.x3p
Interface ProcessorEngineCreator

All Known Implementing Classes:
EngineCreatorFromClass

public abstract interface ProcessorEngineCreator

Interface for creating a new processor engine. Engines are not registered with processors directly, only through creators. This approach allows the processor to create the same engine over and over and the engine to be of multiple or single instance.

The creator is called by a Processor on behalf of a process context to create a registered engine. The creator can decide which engine to create based on the context information, and should initialize the engine as necessary. The creator may create a new instance for the engine, or continually return the same engine instance.

Version:
$Revision: 1.2 $ $Date: 1999/04/12 06:12:43 $
Author:
Assaf Arkin
See Also:
Processor, ProcessorEngine

Method Summary
 ProcessorEngine createEngine(ProcessContext ctx)
          Creates and returns a new processor engine of the specified type.
 

Method Detail

createEngine

public ProcessorEngine createEngine(ProcessContext ctx)
Creates and returns a new processor engine of the specified type. The processor context may be used to initialize the engine. If the engine cannot be instantiated, this method may return null.
Parameters:
ctx - The process context
Returns:
New engine or null