edu.isi.pegasus.planner.code
public class CodeGeneratorFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONDOR_CODE_GENERATOR_CLASS
The name of the class implementing the condor code generator.
|
static String |
DEFAULT_PACKAGE_NAME
The default package where the all the implementing classes are supposed to
reside.
|
static String |
STAMPEDE_EVENT_GENERATOR_CLASS
The name of the class implementing the Stampede Event Generator
|
| Constructor and Description |
|---|
CodeGeneratorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static CodeGenerator |
loadInstance(PegasusBag bag)
This method loads the appropriate implementing code generator as specified
by the user at runtime.
|
static CodeGenerator |
loadInstance(PegasusBag bag,
String className)
This method loads the appropriate code generator as specified by the
user at runtime.
|
public static final String DEFAULT_PACKAGE_NAME
public static final String CONDOR_CODE_GENERATOR_CLASS
public static final String STAMPEDE_EVENT_GENERATOR_CLASS
public static CodeGenerator loadInstance(PegasusBag bag) throws CodeGeneratorFactoryException
bag - the bag of initialization objects.CodeGeneratorFactoryException - that nests any error that
might occur during the instantiation of the implementation.DEFAULT_PACKAGE_NAMEpublic static CodeGenerator loadInstance(PegasusBag bag, String className) throws CodeGeneratorFactoryException
bag - the bag of initialization objects.className - the name of the implementing class.CodeGeneratorFactoryException - that nests any error that
might occur during the instantiation of the implementation.DEFAULT_PACKAGE_NAME