Interface org.as2lib.env.event.broadcaster.EventBroadcaster

org.as2lib.core.BasicInterface
   +--org.as2lib.env.event.EventListenerSource
      +--org.as2lib.env.event.broadcaster.EventBroadcaster

Description

EventBroadcaster dispatches events to all added listeners with the help of an EventInfo.

Method Index

dispatch()

Inherited from EventListenerSource

addAllListeners(), addListener(), getAllListeners(), hasListener(), removeAllListeners(), removeListener()

Inherited from BasicInterface

toString()

Method Detail

dispatch

public function dispatch(event:EventInfo):Void

Dispatches the passed-in event to all added listeners.

The name returned by the EventInfo.getName method of the passed-in event is used as event method name to invoke on the listeners.

The passed-in event is also passed as parameter to the listeners' event methods.

Parameters

eventthe event to dispatch to all listeners

Throws

EventExecutionExceptionif a listener threw an exception during dispatching