public class RefinerFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_PACKAGE_NAME
The default package where the implementations reside, which this factory
loads.
|
static java.lang.String |
DEFAULT_REFINER_IMPLEMENTATION
The default refiner implementation that is picked up.
|
Constructor and Description |
---|
RefinerFactory() |
Modifier and Type | Method and Description |
---|---|
static Refiner |
loadInstance(ADag dag,
PegasusBag bag)
Loads the implementing class corresponding to the value specified in the
properties.
|
static Refiner |
loadInstance(java.lang.String className,
PegasusBag bag,
ADag dag)
Loads the implementing class corresponding to the class.
|
public static final java.lang.String DEFAULT_PACKAGE_NAME
public static final java.lang.String DEFAULT_REFINER_IMPLEMENTATION
public static Refiner loadInstance(ADag dag, PegasusBag bag) throws TransferRefinerFactoryException
In addition it ends up loading the appropriate Transfer Implementation that is required by the refiner.
dag
- the workflow that is being refined.bag
- the bag of initialization objectsTransferRefinerException
- that nests any error that
might occur during the instantiation.TransferRefinerFactoryException
DEFAULT_PACKAGE_NAME
public static Refiner loadInstance(java.lang.String className, PegasusBag bag, ADag dag) throws TransferRefinerFactoryException
className
- the name of the class that implements the mode.It can or
cannot be with the package name.bag
- the bag of initialization objectsdag
- the workflow that is being refined.TransferRefinerFactoryException
- that nests any error that
might occur during the instantiation.DEFAULT_PACKAGE_NAME