org.apache.avalon.merlin.impl
Class DefaultKernelContext

java.lang.Object
  extended byorg.apache.avalon.merlin.impl.DefaultKernelContext
All Implemented Interfaces:
KernelContext

public class DefaultKernelContext
extends Object
implements KernelContext

The context argument supplied to a new kernel instance.

Version:
$Revision: 1.6 $ $Date: 2004/03/17 10:50:04 $
Author:
Avalon Development Team

Constructor Summary
DefaultKernelContext(Logger logger, ContainmentModel application)
          Creation of a new default kernel context.
 
Method Summary
 ContainmentModel getApplicationModel()
          Return the application model.
 Logger getLogger()
          Return the assigned logging channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKernelContext

public DefaultKernelContext(Logger logger,
                            ContainmentModel application)
Creation of a new default kernel context.

Parameters:
logger - the logging channel to be assigned to the kernel
application - the application model
Method Detail

getLogger

public Logger getLogger()
Return the assigned logging channel.

Specified by:
getLogger in interface KernelContext
Returns:
the loggging channel

getApplicationModel

public ContainmentModel getApplicationModel()
Return the application model.

Specified by:
getApplicationModel in interface KernelContext
Returns:
the root application model


Copyright © The Apache Software Foundation. All Rights Reserved.