Constructor
new module:br/util/ListenerFactory(interfaceFunc, eventName)
Construct a new
ListenerFactory
that can create listeners for the given event, on the given interface.
Parameters:
Name | Type | Description |
---|---|---|
interfaceFunc |
function | The listener interface that objects created with this factory will implement. |
eventName |
String | The particular event on the listener interface that will be proxied through. |
Methods
-
createListener(call)
-
Returns a listener that will forward received events through to the given method on the given object.
Parameters:
Name Type Description call
function The call-back to use for the created listener.