public interface CallbackAddonFactory
Modifier and Type | Method and Description |
---|---|
Callback |
createCallback(java.lang.String typeIdentifier,
YouScopeClient client,
YouScopeServer server)
Returns a new measurement callback for the given type identifier.
|
java.lang.String[] |
getSupportedTypeIdentifiers()
Returns a list of all callback type identifiers supported by this factory.
|
boolean |
isSupportingTypeIdentifier(java.lang.String typeIdentifier)
Returns true if this factory supports callback with the given type identifier, false otherwise.
|
Callback createCallback(java.lang.String typeIdentifier, YouScopeClient client, YouScopeServer server) throws CallbackCreationException
typeIdentifier
- The ID for which a callback should be created.measurement
- Measurement which creates the callback.client
- Interface to allow the addon to communicate with the client.server
- Interface to the server.CallbackCreationException
- Thrown if callback type identifier is not supported by this factory, or if any general error occurred during the callback creation.java.lang.String[] getSupportedTypeIdentifiers()
boolean isSupportingTypeIdentifier(java.lang.String typeIdentifier)
typeIdentifier
- The ID of the callback type for which it should be queried if this factory supports its construction.