Class MemoryLogHandler

java.lang.Object
java.util.logging.Handler
de.intarsys.tools.logging.MemoryLogHandler
All Implemented Interfaces:
INotificationSupport

public class MemoryLogHandler extends Handler implements INotificationSupport
  • Constructor Details

    • MemoryLogHandler

      public MemoryLogHandler()
    • MemoryLogHandler

      public MemoryLogHandler(String id, int size)
  • Method Details

    • addNotificationListener

      public void addNotificationListener(EventType type, INotificationListener listener)
      Description copied from interface: INotificationSupport
      Add listener to the collection of objects to be informed when the receiver triggers an event of type name.
      Specified by:
      addNotificationListener in interface INotificationSupport
      Parameters:
      type - The event type we are interested in.
      listener - The object to be informed about an event occurrence
    • clear

      public void clear()
    • close

      public void close() throws SecurityException
      Specified by:
      close in class Handler
      Throws:
      SecurityException
    • flush

      public void flush()
      Specified by:
      flush in class Handler
    • getId

      public String getId()
    • getLogRecords

      public LogRecord[] getLogRecords()
    • getSize

      public int getSize()
    • getString

      public String getString()
    • publish

      public void publish(LogRecord record)
      Specified by:
      publish in class Handler
    • removeNotificationListener

      public void removeNotificationListener(EventType type, INotificationListener listener)
      Description copied from interface: INotificationSupport
      Remove listener from the collection of objects to be informed about events of type name.
      Specified by:
      removeNotificationListener in interface INotificationSupport
      Parameters:
      type - The event type we are no longer interested in.
      listener - The object registered for the event till now.
    • setId

      public void setId(String id)
    • setSize

      public void setSize(int size)
    • triggerChanged

      protected void triggerChanged(Object attribute, Object oldValue, Object newValue)
    • triggerEvent

      protected void triggerEvent(Event event)