Access keys

DynamicEventBroadcasterFactory

Kind of class: class
Inherits from: BasicClass
Implements:
Author: Martin Heidegger
Classpath: org.as2lib.env.event.broadcaster.DynamicEventBroadcasterFactory
File last modified: Saturday, 23 April 2005, 13:51:00
DynamicEventBroadcasterFactory creates and returns any kind of event
broadcaster.
The specific event broadcaster class can be specified on construction
or with the setEventBroadcasterClass method.

Summary

Instance methods
Instance methods inherited from BasicClass

Constructor

DynamicEventBroadcasterFactory

function DynamicEventBroadcasterFactory (
clazz:Function)
Constructs a new DynamicEventBroadcasterFactory instance.
Parameters:
clazz:
the EventBroadcaster implementation to return instances of

Instance methods

createEventBroadcaster

function createEventBroadcaster (
Creates and returns a new instance of a the specified class.
Returns:
a new instance of the specified class
Throws:
org.as2lib.env.except.IllegalStateException if no class to return instances of has been set
yet

setEventBroadcasterClass

function setEventBroadcasterClass (
clazz:Function)
Sets the EventBroadcaster implementation to return instances of.
Parameters:
clazz:
the EventBroadcaster implementation to return instances of
Throws:
org.as2lib.env.except.IllegalArgumentException if the passed-in clazz is not an
implementation of the EventBroadcaster interface