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

java.lang.Object
  extended byorg.apache.avalon.activation.appliance.impl.DefaultBlockContext
All Implemented Interfaces:
BlockContext

public class DefaultBlockContext
extends Object
implements BlockContext

Context object applied to a new block.

Version:
$Revision: 1.3 $ $Date: 2003/11/04 01:07:52 $
Author:
Avalon Development Team

Constructor Summary
DefaultBlockContext(Logger logger, ContainmentModel model, DependencyGraph graph, ServiceContext context, Engine engine, ApplianceRepository repository)
          Creation of a new block context.
 
Method Summary
 ApplianceRepository getApplianceRepository()
          Returns the parent appliance repository.
 ContainmentModel getContainmentModel()
          Returns the containment model assigned to the block.
 DependencyGraph getDependencyGraph()
          Returns the dependency graph assigned to the block.
 Engine getEngine()
          Returns the assigned engine.
 Logger getLogger()
          Returns the logging channel to assign to the block.
 ServiceContext getServiceContext()
          Returns the service context assigned to the block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlockContext

public DefaultBlockContext(Logger logger,
                           ContainmentModel model,
                           DependencyGraph graph,
                           ServiceContext context,
                           Engine engine,
                           ApplianceRepository repository)
Creation of a new block context.

Parameters:
logger - the logging channel to assign
model - the containment model describing the block
graph - the dependency graph
context - the service context
engine - the engine from which dependent applicance instances may be resolved
repository - the parent appliance repository
Method Detail

getLogger

public Logger getLogger()
Returns the logging channel to assign to the block.

Specified by:
getLogger in interface BlockContext
Returns:
the logging channel

getContainmentModel

public ContainmentModel getContainmentModel()
Returns the containment model assigned to the block.

Specified by:
getContainmentModel in interface BlockContext
Returns:
the containment model

getDependencyGraph

public DependencyGraph getDependencyGraph()
Returns the dependency graph assigned to the block.

Specified by:
getDependencyGraph in interface BlockContext
Returns:
the dependency graph

getServiceContext

public ServiceContext getServiceContext()
Returns the service context assigned to the block.

Specified by:
getServiceContext in interface BlockContext
Returns:
the service context

getEngine

public Engine getEngine()
Returns the assigned engine.

Specified by:
getEngine in interface BlockContext
Returns:
the engine

getApplianceRepository

public ApplianceRepository getApplianceRepository()
Returns the parent appliance repository.

Specified by:
getApplianceRepository in interface BlockContext
Returns:
the appliance repository


Copyright © Apache Software Foundation. All Rights Reserved.