chemaxon.util.concurrent.marvin
Class CompositeWorkUnitFactory

java.lang.Object
  extended by chemaxon.util.concurrent.marvin.CompositeWorkUnitFactory
All Implemented Interfaces:
WorkUnitFactory

public class CompositeWorkUnitFactory
extends java.lang.Object
implements WorkUnitFactory

Work unit factory composed of an aray of work unit factories. Creates CompositeWorkUnit objects composed of work units created by these factories.

Since:
Marvin 5.0
Author:
Nora Mate

Constructor Summary
CompositeWorkUnitFactory(WorkUnitFactory[] factories)
          Constructor.
 
Method Summary
 WorkUnit createWorkUnit()
          Creates a CompositeWorkUnit object composed of work units created by the factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeWorkUnitFactory

public CompositeWorkUnitFactory(WorkUnitFactory[] factories)
Constructor. Sets the work unit factory array.

Parameters:
factories - the factory array
Method Detail

createWorkUnit

public WorkUnit createWorkUnit()
                        throws java.lang.Exception
Creates a CompositeWorkUnit object composed of work units created by the factories.

Specified by:
createWorkUnit in interface WorkUnitFactory
Returns:
the created work unit object
Throws:
java.lang.Exception