com.sdm.quasar.client.core.server.impl.plugins
Class AsynchronousCallServerProxyPlugin

java.lang.Object
  extended bycom.sdm.quasar.client.core.server.impl.plugins.AsynchronousCallServerProxyPlugin
All Implemented Interfaces:
ServerProxyPlugin

public class AsynchronousCallServerProxyPlugin
extends java.lang.Object
implements ServerProxyPlugin

A ServerProxyPlugin, that ensures, that all subsequent ServerProxyPlugins are called outside the event dispatch thread (if there is any) and the UI interface is not blocked while executing the server called and so UI still is responsive to the user (and can handle input! If one would block input events, it is neccessary to raact on the ServerProxie's ServerAccessService.getServiceCallingBooleanState() state switches.

Version:
1.$Revision$
Author:
Thomas Wolf

Nested Class Summary
 
Nested classes inherited from class com.sdm.quasar.client.core.server.impl.ServerProxyPlugin
ServerProxyPlugin.ServerProxyPluginCallback
 
Constructor Summary
AsynchronousCallServerProxyPlugin()
          Creates a new AsynchronousCallServerProxyPlugin.
 
Method Summary
 boolean hasServerService(java.lang.Class service, ServerProxyPlugin.ServerProxyPluginCallback serverProxyPluginCallback)
          Tests, whether a service is registered with the service manager.
 java.lang.Object processServerServiceCall(java.lang.Class serverInterface, java.lang.reflect.Method method, java.lang.Object[] args, ServerProxyPlugin.ServerProxyPluginCallback serverProxyPluginCallback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchronousCallServerProxyPlugin

public AsynchronousCallServerProxyPlugin()
Creates a new AsynchronousCallServerProxyPlugin.

Method Detail

hasServerService

public boolean hasServerService(java.lang.Class service,
                                ServerProxyPlugin.ServerProxyPluginCallback serverProxyPluginCallback)
Description copied from interface: ServerProxyPlugin
Tests, whether a service is registered with the service manager.

Specified by:
hasServerService in interface ServerProxyPlugin
Parameters:
service - the interface that defines the service
Returns:
true, iff an implementation is registered for the given service.
See Also:
ServerProxyPlugin.hasServerService(java.lang.Class, com.sdm.quasar.client.core.server.impl.ServerProxyPlugin.ServerProxyPluginCallback)

processServerServiceCall

public java.lang.Object processServerServiceCall(java.lang.Class serverInterface,
                                                 java.lang.reflect.Method method,
                                                 java.lang.Object[] args,
                                                 ServerProxyPlugin.ServerProxyPluginCallback serverProxyPluginCallback)
                                          throws java.lang.Throwable
Specified by:
processServerServiceCall in interface ServerProxyPlugin
Parameters:
serverInterface -
method -
args -
serverProxyPluginCallback - a ServerProxyPlugin.ServerProxyPluginCallback to access the subsequent ServerProxyPlugins without knowing them
Returns:
Throws:
java.lang.Throwable
See Also:
ServerProxyPlugin.processServerServiceCall(java.lang.Class, java.lang.reflect.Method, java.lang.Object[], com.sdm.quasar.client.core.server.impl.ServerProxyPlugin.ServerProxyPluginCallback)