com.cafesoft.core.service
Interface ServiceAdapter

All Superinterfaces:
Debuggable, Service
All Known Implementing Classes:
StandardServiceAdapter

public interface ServiceAdapter
extends Service

ServiceAdapter is a Service that defines an interface for use by clients which provides access to one or more other Services not known to those clients. In other words, a client will invoke a business method on a ServiceAdapter, which will then access other Services (not known to the client) to fulfull the request. This interface can be extended to add business-level methods specific to the Service it adapts.

In addition, a ServiceAdapter may define dependencies on other required Services, which can enable a ServiceConnector to offer conditional support for the Service implemented by the ServiceAdapter.


Method Summary
 void addRequiredService(ServiceReference serviceRef)
          Add a reference to a required Service.
 ServiceReference[] getRequiredServices()
          Get all required Services.
 void removeRequiredService(ServiceReference serviceRef)
          Remove a reference to a required Service.
 
Methods inherited from interface com.cafesoft.core.service.Service
destroy, getServiceConfig, initialize
 
Methods inherited from interface com.cafesoft.core.util.Debuggable
setDebug
 

Method Detail

addRequiredService

public void addRequiredService(ServiceReference serviceRef)
Add a reference to a required Service.


removeRequiredService

public void removeRequiredService(ServiceReference serviceRef)
Remove a reference to a required Service.


getRequiredServices

public ServiceReference[] getRequiredServices()
Get all required Services.

Returns:
an array of ServiceReference instances.


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.