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 TypeMethodDescriptionvoid
addNotificationListener
(EventType type, INotificationListener listener) Addlistener
to the collection of objects to be informed when the receiver triggers an event of typename
.void
clear()
void
close()
void
flush()
getId()
int
getSize()
void
void
removeNotificationListener
(EventType type, INotificationListener listener) Removelistener
from the collection of objects to be informed about events of typename
.void
void
setSize
(int size) protected void
triggerChanged
(Object attribute, Object oldValue, Object newValue) protected void
triggerEvent
(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:INotificationSupport
Addlistener
to the collection of objects to be informed when the receiver triggers an event of typename
.- Specified by:
addNotificationListener
in 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:
close
in classHandler
- Throws:
SecurityException
-
flush
public void flush() -
getId
-
getLogRecords
-
getSize
public int getSize() -
getString
-
publish
-
removeNotificationListener
Description copied from interface:INotificationSupport
Removelistener
from the collection of objects to be informed about events of typename
.- Specified by:
removeNotificationListener
in 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
-