public interface ADEPT2CallbackExport
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
exportCallback(java.lang.Class<?> callbackInterface,
java.lang.Object callbackObject,
boolean serverSideCallback)
Publishes the given callback object to be ready for receiving callback
requests.
|
Pair<java.lang.Class<?>,java.lang.Object> |
getCallback(java.net.URI callbackUri)
Returns the exported remote interface and the callback object identified
by the designated callback URI.
|
java.net.URI |
revokeCallbackExport(java.lang.Object callbackObject)
Revokes the export of the passed callback object if it is the last revoke.
|
java.net.URI exportCallback(java.lang.Class<?> callbackInterface,
java.lang.Object callbackObject,
boolean serverSideCallback)
callbackInterface - The type of the callback.callbackObject - The callbackObject waiting for callbacksserverSideCallback - Whether the designated object is a callback on
server side. These objects are usually only referenced by the
callback export and thus should not be referenced by a weak
reference only.Pair<java.lang.Class<?>,java.lang.Object> getCallback(java.net.URI callbackUri)
callbackUri - The identifier of the requested callback object.java.net.URI revokeCallbackExport(java.lang.Object callbackObject)
callbackObject - The callback object whose export should be revoked.java.lang.IllegalArgumentException - If the designated object is not
registered, a IllegalArgumentException will be
thrown.NullArgumentException - If null is provided, a
NullArgumentException will be thrown.