org.apache.avalon.activation.appliance.impl
Class CompositeBlock

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.avalon.activation.appliance.impl.AbstractAppliance
          extended byorg.apache.avalon.activation.appliance.impl.AbstractBlock
              extended byorg.apache.avalon.activation.appliance.impl.CompositeBlock
All Implemented Interfaces:
Appliance, Block, Composite, CompositionEventListener, Deployable, Disposable, Engine, EventListener, Home, LogEnabled

public class CompositeBlock
extends AbstractBlock
implements Home

The DefaultBlock is responsible for the management of the assembly of the subsidiary appliances, the coordination of the deployment, decommissioning and eventual dissassembly of contained appliances, and the overall management of a containment context.

Version:
$Revision: 1.2.4.4 $ $Date: 2004/01/12 06:22:52 $
Author:
Avalon Development Team

Field Summary
 
Fields inherited from interface org.apache.avalon.activation.appliance.Appliance
MBEAN_SERVER_KEY
 
Method Summary
 void release(Object instance)
          Release an object
 Object resolve()
          Resolve a object to a value.
 
Methods inherited from class org.apache.avalon.activation.appliance.impl.AbstractBlock
assemble, createAppliance, createRootBlock, decommission, deploy, disassemble, dispose, getContainmentModel, getProviders, isAssembled, locate, locate, locate, locate, locate, modelAdded, modelRemoved, toString
 
Methods inherited from class org.apache.avalon.activation.appliance.impl.AbstractAppliance
getModel, isEnabled
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.activation.appliance.Appliance
getModel, isEnabled
 

Method Detail

resolve

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

Specified by:
resolve in interface Home
Specified by:
resolve in class AbstractBlock
Returns:
the resolved object
Throws:
Exception - if an error occurs

release

public void release(Object instance)
Release an object

Specified by:
release in interface Home
Specified by:
release in class AbstractBlock
Parameters:
instance - the object to be released


Copyright © Apache Software Foundation. All Rights Reserved.