Package de.intarsys.tools.logging
Class MemoryLogHandler
java.lang.Object
java.util.logging.Handler
de.intarsys.tools.logging.MemoryLogHandler
- All Implemented Interfaces:
INotificationSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(EventType type, INotificationListener listener) Addlistenerto the collection of objects to be informed when the receiver triggers an event of typename.voidclear()voidclose()voidflush()getId()intgetSize()voidvoidremoveNotificationListener(EventType type, INotificationListener listener) Removelistenerfrom the collection of objects to be informed about events of typename.voidvoidsetSize(int size) protected voidtriggerChanged(Object attribute, Object oldValue, Object newValue) protected voidtriggerEvent(Event event) Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
MemoryLogHandler
public MemoryLogHandler() -
MemoryLogHandler
-
-
Method Details
-
addNotificationListener
Description copied from interface:INotificationSupportAddlistenerto the collection of objects to be informed when the receiver triggers an event of typename.- Specified by:
addNotificationListenerin interfaceINotificationSupport- Parameters:
type- The event type we are interested in.listener- The object to be informed about an event occurrence
-
clear
public void clear() -
close
- Specified by:
closein classHandler- Throws:
SecurityException
-
flush
public void flush() -
getId
-
getLogRecords
-
getSize
public int getSize() -
getString
-
publish
-
removeNotificationListener
Description copied from interface:INotificationSupportRemovelistenerfrom the collection of objects to be informed about events of typename.- Specified by:
removeNotificationListenerin interfaceINotificationSupport- Parameters:
type- The event type we are no longer interested in.listener- The object registered for the event till now.
-
setId
-
setSize
public void setSize(int size) -
triggerChanged
-
triggerEvent
-