edu.isi.pegasus.common.logging
public class LogFormatterFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
The default package where all the implementations reside.
|
private static LogFormatter |
mSingletonInstance
Holds a singleton instance that is populated via the loadSingletonInstance()
method.
|
| Constructor and Description |
|---|
LogFormatterFactory() |
| Modifier and Type | Method and Description |
|---|---|
static LogFormatter |
loadInstance(PegasusProperties properties)
Loads the appropriate LogFormatter class as specified by properties.
|
static LogFormatter |
loadInstance(String implementor)
Loads the Log Formatter specified.
|
static LogFormatter |
loadSingletonInstance(String implementor)
Loads the appropriate LogFormatter class as specified by properties.
|
public static final String DEFAULT_PACKAGE_NAME
private static LogFormatter mSingletonInstance
public static LogFormatter loadSingletonInstance(String implementor) throws LogFormatterFactoryException
implementor - the name of the class implementing LogFormatterLogFormatterFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAMEpublic static LogFormatter loadInstance(PegasusProperties properties) throws LogFormatterFactoryException
properties - is an instance of properties to use.LogFormatterFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAMEpublic static LogFormatter loadInstance(String implementor) throws LogFormatterFactoryException
implementor - the name of the class implementing LogFormatterLogFormatterFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME