Class org.as2lib.env.event.broadcaster.SpeedEventBroadcaster

org.as2lib.core.BasicClass
   +--org.as2lib.env.event.SimpleEventListenerSource
      +--org.as2lib.env.event.broadcaster.SpeedEventBroadcaster

Implemented Interfaces

EventBroadcaster

Description

SpeedEventBroadcaster broadcasts events to listeners in the fastest way possible. It does therefore not support any kind of special functionalities like consuming events.

Method Index

new SpeedEventBroadcaster()

dispatch(), removeAllListeners()

Inherited from SimpleEventListenerSource

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

Inherited from BasicClass

toString()

Constructor Detail

SpeedEventBroadcaster

public function SpeedEventBroadcaster(listeners:Array)

Constructs a new SpeedEventBroadcaster instance.

Parameters

listeners(optional) an array of listeners to populate this broadcaster with

Method Detail

removeAllListeners

public function removeAllListeners(Void):Void

dispatch

public function dispatch(eventInfo:EventInfo):Void

Dispatches the passed-in eventInfo to all added listeners.

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

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

Parameters

eventInfothe event to dispatch to all listeners

Throws

EventExecutionExceptionif a listener threw an exception during dispatching

Specified By

dispatch() in org.as2lib.env.event.broadcaster.EventBroadcaster