FileDocCategorySizeDatePackage
AppenderFinalizer.javaAPI DocApache log4j 1.2.153082Sat Aug 25 00:09:38 BST 2007org.apache.log4j.lf5

AppenderFinalizer

public class AppenderFinalizer extends Object
AppenderFinalizer has a single method that will finalize resources associated with a LogBrokerMonitor in the event that the LF5Appender class is destroyed, and the class loader is garbage collected.
author
Brent Sprecher

Fields Summary
protected LogBrokerMonitor
_defaultMonitor
Constructors Summary
public AppenderFinalizer(LogBrokerMonitor defaultMonitor)


  //--------------------------------------------------------------------------
  // Private Variables:
  //--------------------------------------------------------------------------

  //--------------------------------------------------------------------------
  // Constructors:
  //--------------------------------------------------------------------------

     
    _defaultMonitor = defaultMonitor;
  
Methods Summary
protected voidfinalize()

throws
java.lang.Throwable

    System.out.println("Disposing of the default LogBrokerMonitor instance");
    _defaultMonitor.dispose();