logahawk.listeners
Class DefaultListenerContainer

java.lang.Object
  extended by logahawk.AbstractContainer<Listener>
      extended by logahawk.listeners.DefaultListenerContainer
All Implemented Interfaces:
Listener, ListenerContainer

@ThreadSafe
public class DefaultListenerContainer
extends AbstractContainer<Listener>
implements ListenerContainer

Default implementation of ListenerContainer.


Field Summary
 
Fields inherited from class logahawk.AbstractContainer
items
 
Constructor Summary
DefaultListenerContainer()
           
DefaultListenerContainer(Collection<Listener> c)
           
 
Method Summary
 void log(LogMeta meta, String text)
          Broadcasts the log message.
 
Methods inherited from class logahawk.AbstractContainer
add, addAll, clear
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface logahawk.listeners.ListenerContainer
add
 

Constructor Detail

DefaultListenerContainer

public DefaultListenerContainer()

DefaultListenerContainer

public DefaultListenerContainer(Collection<Listener> c)
Method Detail

log

public void log(LogMeta meta,
                String text)
Broadcasts the log message. If an error is encountered, the logging will be interrupted, and all Listeners after the current one will not receive the message. It is highly recommended to use a FailSafeListener or

Specified by:
log in interface Listener
Specified by:
log in interface ListenerContainer