org.apache.maven.mercury.event
Class EventManager

java.lang.Object
  extended by org.apache.maven.mercury.event.EventManager

public class EventManager
extends java.lang.Object

event queue dispatcher. It registers/unregisters listeners, dispatches events

Version:
$Id: EventManager.java 726706 2008-12-15 14:49:51Z hboutemy $
Author:
Oleg Gusakov

Field Summary
static java.lang.String SYSTEM_PROPERTY_EVENT_MASK
          this property may contain comma separated list of bit numbers defined in MercuryEvent.EventTypeEnum.
static java.lang.String systemPropertyEventMask
           
static int THREAD_COUNT
           
 
Constructor Summary
EventManager()
          default initialization - create thread pool
EventManager(MercuryEvent.EventMask eventMask)
          default initialization - create thread pool
 
Method Summary
 void fireEvent(MercuryEvent event)
           
 java.util.List<MercuryEventListener> getListeners()
           
static boolean isEmpty(java.lang.String o)
           
 void register(MercuryEventListener listener)
          add listener only if it meets the criteria
static java.lang.String toString(MercuryEvent event)
           
 void unRegister(MercuryEventListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THREAD_COUNT

public static final int THREAD_COUNT
See Also:
Constant Field Values

SYSTEM_PROPERTY_EVENT_MASK

public static final java.lang.String SYSTEM_PROPERTY_EVENT_MASK
this property may contain comma separated list of bit numbers defined in MercuryEvent.EventTypeEnum. It supersedes any bits set by the appropriate EventManager constructor by OR operation with those

See Also:
Constant Field Values

systemPropertyEventMask

public static final java.lang.String systemPropertyEventMask
Constructor Detail

EventManager

public EventManager()
default initialization - create thread pool


EventManager

public EventManager(MercuryEvent.EventMask eventMask)
default initialization - create thread pool

Method Detail

register

public void register(MercuryEventListener listener)
add listener only if it meets the criteria

Parameters:
listener -

unRegister

public void unRegister(MercuryEventListener listener)

getListeners

public java.util.List<MercuryEventListener> getListeners()

fireEvent

public void fireEvent(MercuryEvent event)

toString

public static final java.lang.String toString(MercuryEvent event)

isEmpty

public static final boolean isEmpty(java.lang.String o)


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.