com.sun.xml.ws.policy.privateutil
Class PolicyLogger

java.lang.Object
  extended by com.sun.istack.logging.Logger
      extended by com.sun.xml.ws.policy.privateutil.PolicyLogger

public final class PolicyLogger
extends Logger

This is a helper class that provides some conveniece methods wrapped around the standard Logger interface.

Author:
Marek Potociar, Fabian Ritzmann

Method Summary
static PolicyLogger getLogger(Class<?> componentClass)
          The factory method returns preconfigured PolicyLogger wrapper for the class.
 
Methods inherited from class com.sun.istack.logging.Logger
config, config, config, entering, entering, exiting, exiting, fine, fine, finer, finer, finer, finest, finest, finest, getLogger, info, info, info, isLoggable, isMethodCallLoggable, log, log, log, log, logException, logException, logException, logSevereException, logSevereException, logSevereException, setLevel, severe, severe, severe, warning, warning, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static PolicyLogger getLogger(Class<?> componentClass)
The factory method returns preconfigured PolicyLogger wrapper for the class. Since there is no caching implemented, it is advised that the method is called only once per a class in order to initialize a final static logger variable, which is then used through the class to perform actual logging tasks.

Parameters:
componentClass - class of the component that will use the logger instance. Must not be null.
Returns:
logger instance preconfigured for use with the component
Throws:
NullPointerException - if the componentClass parameter is null.


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.