Package edu.isi.pegasus.common.logging
Class LogFormatterFactory
- java.lang.Object
-
- edu.isi.pegasus.common.logging.LogFormatterFactory
-
public class LogFormatterFactory extends java.lang.ObjectA factory class to load the appropriate implementation of LogFormatter as specified by properties.- Version:
- $Revision$
- Author:
- Karan Vahi
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_PACKAGE_NAMEThe default package where all the implementations reside.private static LogFormattermSingletonInstanceHolds a singleton instance that is populated via the loadSingletonInstance() method.
-
Constructor Summary
Constructors Constructor Description LogFormatterFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LogFormatterloadInstance(PegasusProperties properties)Loads the appropriate LogFormatter class as specified by properties.static LogFormatterloadInstance(java.lang.String implementor)Loads the Log Formatter specified.static LogFormatterloadSingletonInstance(java.lang.String implementor)Loads the appropriate LogFormatter class as specified by properties.
-
-
-
Field Detail
-
DEFAULT_PACKAGE_NAME
public static final java.lang.String DEFAULT_PACKAGE_NAME
The default package where all the implementations reside.- See Also:
- Constant Field Values
-
mSingletonInstance
private static LogFormatter mSingletonInstance
Holds a singleton instance that is populated via the loadSingletonInstance() method.
-
-
Method Detail
-
loadSingletonInstance
public static LogFormatter loadSingletonInstance(java.lang.String implementor) throws LogFormatterFactoryException
Loads the appropriate LogFormatter class as specified by properties.- Parameters:
implementor- the name of the class implementing LogFormatter- Returns:
- handle to the Log Formatter.
- Throws:
LogFormatterFactoryException- that nests any error that might occur during the instantiation- See Also:
DEFAULT_PACKAGE_NAME
-
loadInstance
public static LogFormatter loadInstance(PegasusProperties properties) throws LogFormatterFactoryException
Loads the appropriate LogFormatter class as specified by properties.- Parameters:
properties- is an instance of properties to use.- Returns:
- handle to the Log Formatter.
- Throws:
LogFormatterFactoryException- that nests any error that might occur during the instantiation- See Also:
DEFAULT_PACKAGE_NAME
-
loadInstance
public static LogFormatter loadInstance(java.lang.String implementor) throws LogFormatterFactoryException
Loads the Log Formatter specified.- Parameters:
implementor- the name of the class implementing LogFormatter- Returns:
- handle to the Site Catalog.
- Throws:
LogFormatterFactoryException- that nests any error that might occur during the instantiation- See Also:
DEFAULT_PACKAGE_NAME
-
-