org.apache.avalon.activation.appliance
Interface Composite

All Known Implementing Classes:
AbstractBlock, DefaultAppliance

public interface Composite

The Composite interface defines the contract against which a complete assembly assesment and fulfillment provess may be performed.

Version:
$Revision: 1.1 $ $Date: 2003/10/12 15:34:49 $
Author:
Avalon Development Team

Method Summary
 void assemble()
          Assemble the appliance.
 void disassemble()
          Disassemble the appliance.
 Appliance[] getProviders()
          Return the set of appliances assigned as providers.
 boolean isAssembled()
          Returns the assembled state of the appliance.
 

Method Detail

isAssembled

public boolean isAssembled()
Returns the assembled state of the appliance.

Returns:
true if this appliance is assembled

assemble

public void assemble()
              throws AssemblyException
Assemble the appliance.

Throws:
Exception - if an error occurs during appliance assembly
AssemblyException

disassemble

public void disassemble()
Disassemble the appliance.


getProviders

public Appliance[] getProviders()
Return the set of appliances assigned as providers.

Returns:
the extenernal providers consumed by the appliance
Throws:
IllegalStateException - if invoked prior to the completion of the assembly phase


Copyright © Apache Software Foundation. All Rights Reserved.