org.as2lib.core.BasicClass +--org.as2lib.env.event.broadcaster.DynamicEventBroadcasterFactory
EventBroadcasterFactory
DynamicEventBroadcasterFactory
creates and returns any kind of event
broadcaster. The specific event broadcaster class can be specified on construction
or with the setEventBroadcasterClass method.
new DynamicEventBroadcasterFactory()
public function DynamicEventBroadcasterFactory(clazz:Function)
Constructs a new DynamicEventBroadcasterFactory
instance.
clazz | the EventBroadcaster implementation to return instances of |
public function setEventBroadcasterClass(clazz:Function)
Sets the EventBroadcaster implementation to return instances of.
clazz | the EventBroadcaster implementation to return instances of |
IllegalArgumentException | if the passed-in clazz is not an
implementation of the EventBroadcaster interface
|
public function createEventBroadcaster(Void):EventBroadcaster
Creates and returns a new instance of a the specified class.
a new instance of the specified class
IllegalStateException | if no class to return instances of has been set yet |
createEventBroadcaster() in org.as2lib.env.event.broadcaster.EventBroadcasterFactory