fulmine.event.listener
Class EventListenerUtils

java.lang.Object
  extended by fulmine.event.listener.EventListenerUtils

public final class EventListenerUtils
extends Object

Provides a convenience method to create filters

Author:
Ramon Servadei

Constructor Summary
EventListenerUtils()
           
 
Method Summary
static Class<? extends IEvent>[] createFilter(Class<? extends IEvent>... filter)
          Create an event filter based on the Class objects passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListenerUtils

public EventListenerUtils()
Method Detail

createFilter

public static Class<? extends IEvent>[] createFilter(Class<? extends IEvent>... filter)
Create an event filter based on the Class objects passed in. Note this method creates a new array for each call. If this method is called frequently, consider caching the result.

Parameters:
filter - the classes that form the event filter
Returns:
an array of classes forming an IEvent filter
See Also:
IEventListener.getEventTypeFilter()


Copyright © 2007-2009. All Rights Reserved.