fulmine.event.listener
Class PriorityMultiEventListener

java.lang.Object
  extended by fulmine.AbstractLifeCycle
      extended by fulmine.event.listener.MultiEventListener
          extended by fulmine.event.listener.PriorityMultiEventListener
All Implemented Interfaces:
IEventListener, ILifeCycleEventListener, IPriorityLifeCycleEventListener, IDestroyable, ILifeCycle

public class PriorityMultiEventListener
extends MultiEventListener
implements IPriorityLifeCycleEventListener

A MultiEventListener refinement that is marked as a priority listener. This means that it will be added to the head of any list of IEventListener objects when added as a listener to an IEventSource.

Author:
Ramon Servadei

Constructor Summary
PriorityMultiEventListener(String name, IEventManager context, Map<Class<? extends IEvent>,IEventListener> listeners)
          Standard constructor
 
Method Summary
protected  AsyncLog getLog()
          Get the log to use for the object hierarchy
 
Methods inherited from class fulmine.event.listener.MultiEventListener
addedAsListenerFor, doDestroy, doStart, getEventTypeFilter, removedAsListenerFrom, toString, update
 
Methods inherited from class fulmine.AbstractLifeCycle
checkActive, destroy, finalize, isActive, start
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fulmine.event.listener.IEventListener
addedAsListenerFor, getEventTypeFilter, removedAsListenerFrom, update
 
Methods inherited from interface fulmine.ILifeCycle
isActive, start
 
Methods inherited from interface fulmine.IDestroyable
destroy
 

Constructor Detail

PriorityMultiEventListener

public PriorityMultiEventListener(String name,
                                  IEventManager context,
                                  Map<Class<? extends IEvent>,IEventListener> listeners)
Standard constructor

Parameters:
name - the name for this
context - the event context to use
listeners - maps the IEvent type to the IEventListener object that will process events of that type
Method Detail

getLog

protected AsyncLog getLog()
Description copied from class: AbstractLifeCycle
Get the log to use for the object hierarchy

Overrides:
getLog in class MultiEventListener
Returns:
the log to use for the object hierarchy


Copyright © 2007-2009. All Rights Reserved.