com.sun.jdo.spi.persistence.utility.logging
Class AbstractLoggerFactory
java.lang.Object
com.sun.jdo.spi.persistence.utility.logging.AbstractLoggerFactory
- All Implemented Interfaces:
- LoggerFactory
- Direct Known Subclasses:
- LoggerFactoryJDK13, LoggerFactoryJDK14
public abstract class AbstractLoggerFactory
- extends java.lang.Object
- implements LoggerFactory
- Version:
- %I%
- Author:
- Rochelle Raccah
|
Method Summary |
protected abstract Logger |
createLogger(java.lang.String absoluteLoggerName,
java.lang.String bundleName,
java.lang.ClassLoader loader)
Create a new Logger. |
protected java.lang.String |
getAbsoluteLoggerName(java.lang.String relativeLoggerName)
|
protected java.lang.String |
getDomainRoot()
|
protected static Logger |
getErrorLogger()
Get the error logger which is used to log things during creation of
loggers. |
Logger |
getLogger(java.lang.String relativeLoggerName,
java.lang.String bundleName,
java.lang.ClassLoader loader)
Get a Logger. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLoggerFactory
public AbstractLoggerFactory()
getErrorLogger
protected static Logger getErrorLogger()
- Get the error logger which is used to log things during creation of
loggers.
getLogger
public Logger getLogger(java.lang.String relativeLoggerName,
java.lang.String bundleName,
java.lang.ClassLoader loader)
- Get a Logger. The class that implements this interface is responsible
for creating a logger for the named component.
The bundle name and class loader are passed to allow the implementation
to properly find and construct the internationalization bundle.
- Specified by:
getLogger in interface LoggerFactory
- Parameters:
relativeLoggerName - the relative name of this loggerbundleName - the fully qualified name of the resource bundleloader - the class loader used to load the resource bundle, or null
- Returns:
- the logger
createLogger
protected abstract Logger createLogger(java.lang.String absoluteLoggerName,
java.lang.String bundleName,
java.lang.ClassLoader loader)
- Create a new Logger. Subclasses are responsible for creating a
logger for the named component. The bundle name and class loader
are passed to allow the implementation to properly find and
construct the internationalization bundle.
- Parameters:
absoluteLoggerName - the absolute name of this loggerbundleName - the fully qualified name of the resource bundleloader - the class loader used to load the resource bundle, or null
- Returns:
- the logger
getDomainRoot
protected java.lang.String getDomainRoot()
getAbsoluteLoggerName
protected java.lang.String getAbsoluteLoggerName(java.lang.String relativeLoggerName)
Copyright © 2012 GlassFish Community. All Rights Reserved.