tamago
Class BasicComposite

java.lang.Object
  extended by tamago.BasicComponent
      extended by tamago.BasicComposite
All Implemented Interfaces:
Component, Composite, ExportService, RequireService

public abstract class BasicComposite
extends BasicComponent
implements Composite

A helper implementation for Composite interface Composite components that do not rely on implementation inheritance may safely extends this abstract class.

Author:
Frederic Peschanski

Constructor Summary
BasicComposite()
           
 
Method Summary
 Service exportService()
          export to clients an internal service provided by a subcomponent Composites generally rename the export method to allow the discrimination among exported services (overload is not possible since there is only a return type).
 
Methods inherited from class tamago.BasicComponent
bind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tamago.RequireService
bind
 

Constructor Detail

BasicComposite

public BasicComposite()
Method Detail

exportService

public Service exportService()
                      throws ServiceExportException
Description copied from interface: ExportService
export to clients an internal service provided by a subcomponent Composites generally rename the export method to allow the discrimination among exported services (overload is not possible since there is only a return type). After the export, a client component may bind to the service, the binding crosscuts the composite boundary. It is possible to filter the service by promoting the inner service to the enclosing composite, as a provided service (in this case, the service is *not* exported).

Specified by:
exportService in interface ExportService
Returns:
the exported service
Throws:
ServiceExportException - if the export is not allowed