| java.lang.Object com.jgoodies.binding.util.LoggingUtils
LoggingUtils | final public class LoggingUtils (Code) | | Assists in logging changes in bound bean properties.
author: Andrej Golovnin author: Karsten Lentzsch version: $Revision: 1.5 $ See Also: Logger |
Method Summary | |
public static void | logPropertyChanges(Object bean) Registers a PropertyChangeListener with the specified bean
that logs all PropertyChangeEvents fired by this bean
using the default Logger and default log level. | public static void | logPropertyChanges(Object bean, Logger logger) Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and the default log level. | public static void | logPropertyChanges(Object bean, Logger logger, Level level) Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and log level. | public static void | logPropertyChanges(Object bean, String propertyName) Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the default Logger and default log level. | public static void | logPropertyChanges(Object bean, String propertyName, Logger logger) Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the specified Logger and the default log level. | public static void | logPropertyChanges(Object bean, String propertyName, Logger logger, Level level) Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property, Logger,
and log level. | public static void | setDefaultLevel(Level level) Sets the default log level to be used when logging PropertyChangeEvents. |
logPropertyChanges | public static void logPropertyChanges(Object bean)(Code) | | Registers a PropertyChangeListener with the specified bean
that logs all PropertyChangeEvents fired by this bean
using the default Logger and default log level.
Parameters: bean - the bean to log PropertyChangeEvents from throws: NullPointerException - if the bean is null |
logPropertyChanges | public static void logPropertyChanges(Object bean, Logger logger)(Code) | | Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and the default log level.
Parameters: bean - the bean to log PropertyChangeEvents from Parameters: logger - the Logger to be used to log PropertyChangeEvents throws: NullPointerException - if the bean or logger is null |
logPropertyChanges | public static void logPropertyChanges(Object bean, Logger logger, Level level)(Code) | | Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and log level.
Parameters: bean - the bean to log PropertyChangeEvents from Parameters: logger - the Logger to be used to log PropertyChangeEvents Parameters: level - the log level throws: NullPointerException - if the bean, logger, or level is null |
logPropertyChanges | public static void logPropertyChanges(Object bean, String propertyName)(Code) | | Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the default Logger and default log level.
Parameters: bean - the bean to log PropertyChangeEvents from Parameters: propertyName - the name of the property which PropertyChangeEventsshould be logged throws: NullPointerException - if the bean or propertyName is null |
logPropertyChanges | public static void logPropertyChanges(Object bean, String propertyName, Logger logger)(Code) | | Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the specified Logger and the default log level.
Parameters: bean - the bean to log PropertyChangeEvents from Parameters: propertyName - the name of the property which PropertyChangeEventsshould be logged Parameters: logger - the Logger to be used to log PropertyChangeEvents throws: NullPointerException - if the bean, propertyName, or logger is null |
logPropertyChanges | public static void logPropertyChanges(Object bean, String propertyName, Logger logger, Level level)(Code) | | Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property, Logger,
and log level.
Parameters: bean - the bean to log PropertyChangeEvents from Parameters: propertyName - the name of the property which PropertyChangeEventsshould be logged Parameters: logger - the Logger to be used to log PropertyChangeEvents Parameters: level - the log level throws: NullPointerException - if the bean, propertyName, logger,or level is null |
setDefaultLevel | public static void setDefaultLevel(Level level)(Code) | | Sets the default log level to be used when logging PropertyChangeEvents.
The initial default level is
Level.FINE .
Parameters: level - the default level to be used if no custom levelhas been provided throws: NullPointerException - if the new defaultLevel is null |
|
|