public class LogFormatterFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.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(java.lang.String implementor)
Loads the Log Formatter specified.
|
static LogFormatter |
loadSingletonInstance(java.lang.String implementor)
Loads the appropriate LogFormatter class as specified by properties.
|
public static final java.lang.String DEFAULT_PACKAGE_NAME
private static LogFormatter mSingletonInstance
public static LogFormatter loadSingletonInstance(java.lang.String implementor) throws LogFormatterFactoryException
implementor
- the name of the class implementing LogFormatterLogFormatterFactoryException
- that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
public 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_NAME
public static LogFormatter loadInstance(java.lang.String implementor) throws LogFormatterFactoryException
implementor
- the name of the class implementing LogFormatterLogFormatterFactoryException
- that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME