org.yawlfoundation.yawl.resourcing.allocators
Class AllocatorFactory

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.allocators.AllocatorFactory

public class AllocatorFactory
extends Object

This factory class creates and instantiates instances of the various allocator classes. Create Date: 10/07/2007. Last Date 13/09/2010

Version:
2.0
Author:
Michael Adams

Constructor Summary
AllocatorFactory()
           
 
Method Summary
static AbstractAllocator getInstance(String allocatorName)
          Instantiates a single allocator instance
static AbstractAllocator getInstance(String allocatorName, HashMap<String,String> params)
          Instantiates a class of the name passed (via a call to the above method)
static Set<AbstractAllocator> getInstances()
          Constructs and returns a list of instantiated allocator objects, one for each of the different allocator classes available in this package and externally
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllocatorFactory

public AllocatorFactory()
Method Detail

getInstance

public static AbstractAllocator getInstance(String allocatorName)
Instantiates a single allocator instance

Parameters:
allocatorName - the canonical name of the allocator class (no extension) deployed within the resource service
Returns:
an instantiated allocator, or null if there was a problem

getInstance

public static AbstractAllocator getInstance(String allocatorName,
                                            HashMap<String,String> params)
Instantiates a class of the name passed (via a call to the above method)

Parameters:
allocatorName - the name of the class to instantiate
params - a Map of parameters required by the class to perform its allocation
Returns:
the instantiated class, or null if there was a problem

getInstances

public static Set<AbstractAllocator> getInstances()
Constructs and returns a list of instantiated allocator objects, one for each of the different allocator classes available in this package and externally

Returns:
a Set of instantiated allocator objects


Copyright © 2004-2012 The YAWL Foundation.