public class IlvEventDemultiplexer extends Object implements GenericEventListener
IlvEventDemultiplexer
is a utility class that can
demultiplex generic events by recovering their type information and
dispatching them to typesafe inform
methods in a
target
object.
When IlvEventDemultiplexer
receives a generic event it uses
reflection to determine if the target
object has an
inform
method that takes a single argument of the event
class.
If so, the demultiplexer dispatches the event to that specific
inform
method, thereby recovering the event type
information for the target
.Constructor and Description |
---|
IlvEventDemultiplexer(Object target)
Constructs a new
IlvEventDemultiplexer that will dispatch
events to the specified target object. |
Modifier and Type | Method and Description |
---|---|
void |
inform(EventObject event)
Demultiplexes an event based on its type.
|
public IlvEventDemultiplexer(Object target)
IlvEventDemultiplexer
that will dispatch
events to the specified target
object.public void inform(EventObject event)
inform
in interface GenericEventListener
event
- The event.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.