Class LoggerFactoryJDK14
- java.lang.Object
-
- com.sun.jdo.spi.persistence.utility.logging.AbstractLoggerFactory
-
- com.sun.jdo.spi.persistence.utility.logging.LoggerFactoryJDK14
-
- All Implemented Interfaces:
LoggerFactory
- Direct Known Subclasses:
LoggerFactoryiAS
public class LoggerFactoryJDK14 extends AbstractLoggerFactory
- Version:
- 1.0
- Author:
- Craig Russell
-
-
Constructor Summary
Constructors Constructor Description LoggerFactoryJDK14()
Creates new LoggerFactory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureFileHandler(LoggerJDK14 logger)
This method throws SecurityException if a security manager exists and if the caller does not have LoggingPermission("control")) or the calling code is not placed in the doPrivileged() block.protected LoggerJDK14
createLogger(String absoluteLoggerName, String bundleName)
protected Logger
createLogger(String absoluteLoggerName, String bundleName, ClassLoader loader)
Create a new Logger.protected LoggerJDK14
findLogger(String absoluteLoggerName)
protected static ResourceBundle
getMessages()
Get the message bundle for the AbstractLogger itself.protected void
setContextClassLoader(ClassLoader loader)
This method throws SecurityException if a security manager exists and if the caller does not have LoggingPermission("control")) or the calling code is not placed in the doPrivileged() block.-
Methods inherited from class com.sun.jdo.spi.persistence.utility.logging.AbstractLoggerFactory
getAbsoluteLoggerName, getDomainRoot, getErrorLogger, getLogger
-
-
-
-
Method Detail
-
getMessages
protected static ResourceBundle getMessages()
Get the message bundle for the AbstractLogger itself.
-
findLogger
protected LoggerJDK14 findLogger(String absoluteLoggerName)
-
createLogger
protected Logger createLogger(String absoluteLoggerName, String bundleName, ClassLoader loader)
Create a new Logger. create 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. This operation is executed as a privileged action to allow permission access for the following operations: LogManager.getLogManager().addLogger - this might do checkAccess. new FileHandler FileHandler.setLevel FileHandler.setFormatter Logger.addHandler- Specified by:
createLogger
in classAbstractLoggerFactory
- 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
-
setContextClassLoader
protected void setContextClassLoader(ClassLoader loader)
This method throws SecurityException if a security manager exists and if the caller does not have LoggingPermission("control")) or the calling code is not placed in the doPrivileged() block.
-
createLogger
protected LoggerJDK14 createLogger(String absoluteLoggerName, String bundleName)
-
configureFileHandler
protected void configureFileHandler(LoggerJDK14 logger)
This method throws SecurityException if a security manager exists and if the caller does not have LoggingPermission("control")) or the calling code is not placed in the doPrivileged() block.
-
-