public interface ListenerFactory
Modifier and Type | Method and Description |
---|---|
List<String> |
getSupportedListenerTypes()
What types of listener are supported? Note that we assume that the list
of types is the same for all users and all workflow instances.
|
Listener |
makeListener(TavernaRun run,
String listenerType,
String configuration)
Make an event listener.
|
Listener makeListener(TavernaRun run, String listenerType, String configuration) throws NoListenerException
run
- The workflow instance to attach the event listener to.listenerType
- The type of event listener to create. Must be one of the
strings returned by getSupportedListenerTypes()
.configuration
- A configuration document to pass to the listener.NoListenerException
- If the listenerType is unrecognized or the
configuration is bad in some way.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.