de.novanic.eventservice.client.event.filter
Class EventFilterFactory

java.lang.Object
  extended by de.novanic.eventservice.client.event.filter.EventFilterFactory

public class EventFilterFactory
extends java.lang.Object

The EventFilterFactory can be used to connect various EventFilter instances by creating a CompositeEventFilter. A other solution to build filter sequences is available with CascadingEventFilter (cascading filter sequences).

Author:
sstrohschein
Date: 04.03.2009
Time: 19:21:21

Method Summary
 CompositeEventFilter connect(EventFilter... anEventFilters)
          That method can connect various EventFilter instances by building a CompositeEventFilter.
static EventFilterFactory getInstance()
          This method should be used to create an instance of EventFilterFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EventFilterFactory getInstance()
This method should be used to create an instance of EventFilterFactory. EventFilterFactory is a singleton, so this method returns always the same instance of EventFilterFactory.

Returns:
EventFilterFactory (singleton)

connect

public CompositeEventFilter connect(EventFilter... anEventFilters)
That method can connect various EventFilter instances by building a CompositeEventFilter.

Parameters:
anEventFilters - EventFilter instances to build a CompositeEventFilter.
Returns:
CompositeEventFilter which contains the connectable EventFilter instances.