|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.common.logging.LogFormatterFactory
public class LogFormatterFactory
A factory class to load the appropriate implementation of LogFormatter as specified by properties.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
LogFormatterFactory()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PACKAGE_NAME
private static LogFormatter mSingletonInstance
| Constructor Detail |
|---|
public LogFormatterFactory()
| Method Detail |
|---|
public static LogFormatter loadSingletonInstance(String implementor)
throws LogFormatterFactoryException
implementor - the name of the class implementing LogFormatter
LogFormatterFactoryException - 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(String implementor)
throws LogFormatterFactoryException
implementor - the name of the class implementing LogFormatter
LogFormatterFactoryException - that nests any error that
might occur during the instantiationDEFAULT_PACKAGE_NAME
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||