org.yawlfoundation.yawl.resourcing.filters
Class FilterFactory

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.filters.FilterFactory

public class FilterFactory
extends Object

This factory class creates and instantiates instances of the various filter classes found in this package. Create Date: 10/07/2007. Last Date: 14/11/2010

Version:
2.0
Author:
Michael Adams

Constructor Summary
FilterFactory()
           
 
Method Summary
static AbstractFilter getInstance(String filterName)
          Instantiates a single filter instance
static AbstractFilter getInstance(String filterName, HashMap<String,String> params)
          Instantiates a class of the name passed (via a call to the above method)
static Set<AbstractFilter> getInstances()
          Constructs and returns a list of instantiated filter objects, one for each of the different filter 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

FilterFactory

public FilterFactory()
Method Detail

getInstance

public static AbstractFilter getInstance(String filterName)
Instantiates a single filter instance

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

getInstance

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

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

getInstances

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

Returns:
a Set of instantiated filter objects


Copyright © 2004-2012 The YAWL Foundation.