com.sdm.quasar.client.core.server.impl
Interface ServerProxyPlugin

All Known Implementing Classes:
AsynchronousCallServerProxyPlugin, ComponentServerProxyPlugin, ImplementationServerProxyPlugin, LogTimingServerProxyPlugin

public interface ServerProxyPlugin

A plugin for the ServerProxy.

Version:
1.$Revision$
Author:
Thomas Wolf

Nested Class Summary
static interface ServerProxyPlugin.ServerProxyPluginCallback
          Callback interface used within ServerProxyPlugin.ServerProxyPluginCallback.processServerServiceCall(Object[]).
 
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)
           
 

Method Detail

hasServerService

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

Parameters:
service - the interface that defines the service
Returns:
true, iff an implementation is registered for the given service.

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
Parameters:
serverInterface -
method -
args -
serverProxyPluginCallback - a ServerProxyPlugin.ServerProxyPluginCallback to access the subsequent ServerProxyPlugins without knowing them
Returns:
Throws:
java.lang.Throwable