org.apache.avalon.activation.appliance
Interface Home

All Known Subinterfaces:
Appliance, Block
All Known Implementing Classes:
AbstractAppliance, AbstractBlock, CompositeBlock

public interface Home

The Home interface defines the contract for instance access and release. A client of a home aquires object references by checking-out an instance by passing itself as a check-out token. When a client no-longer requires the instance it release the instance along by supplying itself as the identifiable consumer.

Version:
$Revision: 1.2 $ $Date: 2003/10/17 03:26:28 $
Author:
Avalon Development Team

Method Summary
 void release(Object instance)
          Release an object
 Object resolve()
          Resolve a object to a value.
 

Method Detail

resolve

public Object resolve()
               throws Exception
Resolve a object to a value.

Returns:
the resolved object
Throws:
Exception - if an error occurs

release

public void release(Object instance)
Release an object

Parameters:
instance - the object to be released


Copyright © Apache Software Foundation. All Rights Reserved.