public class UserControlMeasurementCallbackFactory extends java.lang.Object implements CallbackAddonFactory
| Constructor and Description |
|---|
UserControlMeasurementCallbackFactory() |
| 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.
|
public UserControlMeasurementCallbackFactory()
public Callback createCallback(java.lang.String typeIdentifier, YouScopeClient client, YouScopeServer server) throws CallbackCreationException
CallbackAddonFactorycreateCallback in interface CallbackAddonFactorytypeIdentifier - The ID for which a callback should be created.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.public java.lang.String[] getSupportedTypeIdentifiers()
CallbackAddonFactorygetSupportedTypeIdentifiers in interface CallbackAddonFactorypublic boolean isSupportingTypeIdentifier(java.lang.String typeIdentifier)
CallbackAddonFactoryisSupportingTypeIdentifier in interface CallbackAddonFactorytypeIdentifier - The ID of the callback type for which it should be queried if this factory supports its construction.