com.sun.jdo.spi.persistence.utility.logging
Class LoggerFactoryJDK14

java.lang.Object
  extended by com.sun.jdo.spi.persistence.utility.logging.AbstractLoggerFactory
      extended by com.sun.jdo.spi.persistence.utility.logging.LoggerFactoryJDK14
All Implemented Interfaces:
LoggerFactory

public class LoggerFactoryJDK14
extends AbstractLoggerFactory

Version:
1.0
Author:
Craig Russell

Constructor Summary
LoggerFactoryJDK14()
          Creates new LoggerFactory
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerFactoryJDK14

public LoggerFactoryJDK14()
Creates new LoggerFactory

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 class AbstractLoggerFactory
Parameters:
absoluteLoggerName - the absolute name of this logger
bundleName - the fully qualified name of the resource bundle
loader - 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.



Copyright © 2012 GlassFish Community. All Rights Reserved.