org.apache.avalon.framework.component
Interface Composable

All Known Subinterfaces:
Recomposable
All Known Implementing Classes:
DefaultComponentSelector

public interface Composable

A composer is a class that need to connect to software components using a "role" abstraction, thus not depending on particular implementations but on behavioral interfaces.
The contract surrounding a Composable is that it is a user. The Composable is able to use Components managed by the ComponentManager it was initialized with. As part of the contract with the system, the instantiating entity must call the setComponenetManager method before the Composable can be considered valid. The setComponentManager method must be called after the constructor and before any user methods.

Author:
Federico Barbieri, Pierpaolo Fumagalli, Stefano Mazzocchi, Berin Loritsch

Method Summary
 void compose(ComponentManager componentManager)
          Pass the ComponentManager to the composer.
 

Method Detail

compose

public void compose(ComponentManager componentManager)
             throws ComponentException
Pass the ComponentManager to the composer. The Composable implementation should use the specified ComponentManager to acquire the components it needs for execution.
Parameters:
manager - The ComponentManager which this Composable uses.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.