package org.openntf.domino.logging;
import java.util.logging.Formatter;
public interface LogHandlerUpdateIF {
/**
* Indicates whether the handler is able to update itself with the new handlerConfig
*
* @param newHandlerConfig
* new Config
* @param oldHandlerConfig
* old Config
* @return true if the handler is able
*/
public boolean mayUpdateYourself(LogHandlerConfigIF newHandlerConfig, LogHandlerConfigIF oldHandlerConfig);
/**
* Tells the handler to update itself; mustn't throw any Exceptions
*
* @param newhandlerConfig
* new Config
* @param oldHandlerConfig
* old Config
* @param useDefaultFormatter
* if the handler should use its default formatter
* @param newFormatter
* the formatter the handler should set (only != null, if really changed)
*/
public void doUpdateYourself(LogHandlerConfigIF newhandlerConfig, LogHandlerConfigIF oldHandlerConfig, boolean useDefaultFormatter,
Formatter newFormatter);
}