com.sdm.quasar.client.core.server
Interface ServerAccessService

All Superinterfaces:
Service
All Known Implementing Classes:
ServerProxy

public interface ServerAccessService
extends Service

ServerAccessService works like a ServiceProvider that provides Services of the business logic. Unfortunately the Service interface cannot be used here to prevent a dependency of the server (or server-interface) part to the quasar client libraries. The ServerAccessService is itself a Service, because it must be locatable by client dialogs.

Author:
Thomas Wolf, Martin Haft

Method Summary
 java.lang.Object getService(java.lang.Class service)
          Returns the service implementation registered with the service manager.
 BooleanState getServiceCallingBooleanState()
          Returns a BooleanState, that is true as long as a service - previously returned by getService(Class) - is beeing called.
 boolean hasService(java.lang.Class service)
          Tests, whether a service is registered with the service manager.
 

Method Detail

hasService

public boolean hasService(java.lang.Class service)
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.

getService

public java.lang.Object getService(java.lang.Class service)
Returns the service implementation registered with the service manager.

Parameters:
service - the interface that defines the service
Returns:
the implementation for the service interface.
Throws:
java.lang.IllegalArgumentException - if the service is unknown

getServiceCallingBooleanState

public BooleanState getServiceCallingBooleanState()
Returns a BooleanState, that is true as long as a service - previously returned by getService(Class) - is beeing called.

Returns:
a BooleanState, that is true, while any server-side-service is called.