public class WorkFactory
extends java.lang.Object
org.griphyn.common.catalog.WorkCatalog| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_PACKAGE
Package to prefix "just" class names with.
|
| Constructor and Description |
|---|
WorkFactory() |
| Modifier and Type | Method and Description |
|---|---|
static WorkCatalog |
loadInstance(CommonProperties props)
Connects the interface with the work catalog implementation.
|
static WorkCatalog |
loadInstance(PegasusProperties props)
Connects the interface with the work catalog implementation.
|
private static WorkCatalog |
loadInstance(java.lang.String catalogImplementor,
java.util.Properties props)
Connects the interface with the work catalog implementation.
|
public static final java.lang.String DEFAULT_PACKAGE
public static WorkCatalog loadInstance(PegasusProperties props) throws WorkFactoryException
props - is an instance of properties to use.java.lang.ClassNotFoundException - if the schema for the database
cannot be loaded. You might want to check your CLASSPATH, too.java.lang.NoSuchMethodException - if the schema's constructor interface
does not comply with the database driver API.java.lang.InstantiationException - if the schema class is an abstract
class instead of a concrete implementation.java.lang.IllegalAccessException - if the constructor for the schema
class it not publicly accessible to this package.InvocationTargetException - if the constructor of the schema
throws an exception while being dynamically loaded.WorkFactoryExceptionorg.griphyn.common.util.CommonPropertiespublic static WorkCatalog loadInstance(CommonProperties props) throws WorkFactoryException
props - is an instance of properties to use.java.lang.ClassNotFoundException - if the schema for the database
cannot be loaded. You might want to check your CLASSPATH, too.java.lang.NoSuchMethodException - if the schema's constructor interface
does not comply with the database driver API.java.lang.InstantiationException - if the schema class is an abstract
class instead of a concrete implementation.java.lang.IllegalAccessException - if the constructor for the schema
class it not publicly accessible to this package.InvocationTargetException - if the constructor of the schema
throws an exception while being dynamically loaded.WorkFactoryExceptionorg.griphyn.common.util.CommonPropertiesprivate static WorkCatalog loadInstance(java.lang.String catalogImplementor, java.util.Properties props) throws WorkFactoryException
props - is an instance of properties to use.java.lang.ClassNotFoundException - if the schema for the database
cannot be loaded. You might want to check your CLASSPATH, too.java.lang.NoSuchMethodException - if the schema's constructor interface
does not comply with the database driver API.java.lang.InstantiationException - if the schema class is an abstract
class instead of a concrete implementation.java.lang.IllegalAccessException - if the constructor for the schema
class it not publicly accessible to this package.InvocationTargetException - if the constructor of the schema
throws an exception while being dynamically loaded.WorkFactoryExceptionorg.griphyn.common.util.CommonProperties