Class org.as2lib.env.event.broadcaster.SimpleEventInfo

org.as2lib.core.BasicClass
   +--org.as2lib.env.event.broadcaster.SimpleEventInfo

Implemented Interfaces

EventInfo

Description

SimpleEventInfo lets you dynamically set the name of the event.

Use this dynamic behavior only if it really adds any value. Creating a new EventInfo implementation that returns always the same name (immutable) for one specific listener is much cleaner. You then also only have to change the name of the event once in your EventInfo implementation if you change the event method name on the listener.

Method Index

new SimpleEventInfo()

getName()

Inherited from BasicClass

toString()

Constructor Detail

SimpleEventInfo

public function SimpleEventInfo(eventName:String)

Constructs a SimpleEventInfo instance.

Parameters

Method Detail

getName

public function getName(Void):String

Returns the name of the event.

Return

the name of the event

Specified By

getName() in org.as2lib.env.event.broadcaster.EventInfo