tamago
Interface RequireService

All Known Subinterfaces:
Component, Composite
All Known Implementing Classes:
BasicComponent, BasicComposite

public interface RequireService

The root of Service requirement interfaces A component requiring a given service must implement this interface and the bind method so that the component can be dynamically bound to a provider (implementor) component.

Author:
Frederic Peschanski

Method Summary
 void bind(Service s)
          Bind dynamically a provider service to the component.
 

Method Detail

bind

void bind(Service s)
          throws ServiceBindException
Bind dynamically a provider service to the component. Components generally overload the bind method to allow the discrimination among required services

Parameters:
s - the required service to bind to
Throws:
ServiceBindException - if the binding is not allowed