Registers a class to be returned as a callable reference.
The JSONBridge will return a callable reference to the JSON-RPC client for registered classes instead of passing them by value. The JSONBridge will take a references to these objects and the JSON-RPC client will create an invocation proxy for objects of this class for which methods will be called on the instance on the server.
Note: A limitation exists in the JSON-RPC client where only the top most object returned from a method can be made into a proxy.
A Callable Reference in JSON format looks like this:
{ "javaClass":"org.jabsorb.test.Bar",
"objectID":4827452,
"JSONRPCType":"CallableReference" }
@param clazz The class object that should be marshalled as a callablereference.
@throws Exception If the bridge is global, callable references cannot beadded
|
|