public interface CallbackProvider
extends java.rmi.Remote
Callback
implementations.Modifier and Type | Method and Description |
---|---|
Callback |
createCallback(java.lang.String typeIdentifier)
Returns a callback with the given type identifier.
|
<T extends Callback> |
createCallback(java.lang.String typeIdentifier,
java.lang.Class<T> callbackInterface)
Returns a callback with the given type identifier implementing a given interface.
|
Callback createCallback(java.lang.String typeIdentifier) throws java.rmi.RemoteException, CallbackCreationException
CallbackCreationException
if no callback with the given identifier is available.typeIdentifier
- Type identifier of callback.java.rmi.RemoteException
CallbackCreationException
- Thrown if no callback with the given name is available, or if creation of callback failed.<T extends Callback> T createCallback(java.lang.String typeIdentifier, java.lang.Class<T> callbackInterface) throws java.rmi.RemoteException, CallbackCreationException
CallbackCreationException
if no callback with the given identifier is available, or if a callback with the identifier is available but does not implement the given interface.typeIdentifier
- Type identifier of callback.callbackInterface
- The interface of the callback.java.rmi.RemoteException
CallbackCreationException
- Thrown if no callback with the given name is available, if creation of callback failed, or if callback with given identifier does not implement given interface.