tamago
Class BasicComponent

java.lang.Object
  extended by tamago.BasicComponent
All Implemented Interfaces:
Component, RequireService
Direct Known Subclasses:
BasicComposite

public abstract class BasicComponent
extends java.lang.Object
implements Component

A helper implementation for Component interface Basic (flat) components that do not rely on implementation inheritance may safely extends this abstract class.

Author:
Frederic Peschanski

Constructor Summary
BasicComponent()
           
 
Method Summary
 void bind(Service s)
          Bind dynamically a provider service to the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicComponent

public BasicComponent()
Method Detail

bind

public void bind(Service s)
          throws ServiceBindException
Description copied from interface: RequireService
Bind dynamically a provider service to the component. Components generally overload the bind method to allow the discrimination among required services

Specified by:
bind in interface RequireService
Parameters:
s - the required service to bind to
Throws:
ServiceBindException - if the binding is not allowed