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
- Version:
- 1.0
- Author:
- Craig Russell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureFileHandler(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 LoggerJDK14createLogger(String absoluteLoggerName, String bundleName) protected LoggercreateLogger(String absoluteLoggerName, String bundleName, ClassLoader loader) Create a new Logger.protected LoggerJDK14findLogger(String absoluteLoggerName) protected static ResourceBundleGet the message bundle for the AbstractLogger itself.protected voidsetContextClassLoader(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
-
Constructor Details
-
LoggerFactoryJDK14
public LoggerFactoryJDK14()Creates new LoggerFactory
-
-
Method Details
-
getMessages
Get the message bundle for the AbstractLogger itself. -
findLogger
-
createLogger
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:
createLoggerin 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
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
-
configureFileHandler
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.
-