|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.server.impl.plugins.ImplementationServerProxyPlugin
A simple ServerProxyPlugin implementation that allows to register
service implementations at this plugin.
Processing the server service call simply means calling these registered
implementations.
| Nested Class Summary |
| Nested classes inherited from class com.sdm.quasar.client.core.server.impl.ServerProxyPlugin |
ServerProxyPlugin.ServerProxyPluginCallback |
| Constructor Summary | |
ImplementationServerProxyPlugin()
Creates a new ImplementationServerProxyPlugin. |
|
| 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)
|
void |
registerServiceImplementation(java.lang.Class serviceInterface,
java.lang.Object serviceImplementation)
Registers an implementation of a server service interface |
void |
unregisterServiceImplementation(java.lang.Class serviceInterface,
java.lang.Object serviceImplementation)
Unregisters a previously registered service implementation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImplementationServerProxyPlugin()
ImplementationServerProxyPlugin.
| Method Detail |
public void registerServiceImplementation(java.lang.Class serviceInterface,
java.lang.Object serviceImplementation)
serviceInterface - the service interface to register an implementation for (not null)serviceImplementation - the implementation of that service
(not null, must implement serviceInterface)
java.lang.IllegalArgumentException - if the service interface class describes
not an interface or if the service implementation is not implementing
the service interface
public void unregisterServiceImplementation(java.lang.Class serviceInterface,
java.lang.Object serviceImplementation)
serviceInterface - the service interface to register an implementation for (not null)serviceImplementation - the implementation of that service
(not null, must implement serviceInterface)
public boolean hasServerService(java.lang.Class service,
ServerProxyPlugin.ServerProxyPluginCallback serverProxyPluginCallback)
ServerProxyPlugin
hasServerService in interface ServerProxyPluginservice - the interface that defines the service
ServerProxyPlugin.hasServerService(java.lang.Class, com.sdm.quasar.client.core.server.impl.ServerProxyPlugin.ServerProxyPluginCallback)
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
processServerServiceCall in interface ServerProxyPluginserverInterface - method - args - serverProxyPluginCallback - a ServerProxyPlugin.ServerProxyPluginCallback to access the
subsequent ServerProxyPlugins without knowing them
java.lang.ThrowableServerProxyPlugin.processServerServiceCall(java.lang.Class, java.lang.reflect.Method, java.lang.Object[], com.sdm.quasar.client.core.server.impl.ServerProxyPlugin.ServerProxyPluginCallback)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||