org.apache.avalon.merlin.kernel
Interface KernelContext

All Known Implementing Classes:
DefaultKernelContext

public interface KernelContext

The KernelContext declares the information needed to establish a new kernel instance.


Method Summary
 ContainmentContext getContainmentContext()
          Return the root containment context.
 boolean getDebugFlag()
          Return the kernel debug flag.
 File getHomePath()
          Return the home path
 URL[] getInstallSequence()
          Return the URLs to install into the kerenel on startup.
 Logger getKernelLogger()
          Return the kernel logging channel.
 File getLibraryPath()
          Return the library path
 LoggingManager getLoggingManager()
          Return the logging manager for the kernel.
 ModelFactory getModelFactory()
          Return the model factory.
 org.apache.excalibur.mpool.PoolManager getPoolManager()
          Return the kernel pool manager.
 Repository getRepository()
          Return the runtime repository.
 boolean getServerFlag()
          Return the kernel server flag.
 TargetDirective[] getTargetDirectives()
          Return the set of target overrides.
 File getTempPath()
          Return the temporary directory path
 

Method Detail

getModelFactory

public ModelFactory getModelFactory()
Return the model factory.

Returns:
the factory

getRepository

public Repository getRepository()
Return the runtime repository.

Returns:
the repository

getHomePath

public File getHomePath()
Return the home path

Returns:
the home path (possibly null)

getTempPath

public File getTempPath()
Return the temporary directory path

Returns:
the path (possibly null)

getLibraryPath

public File getLibraryPath()
Return the library path

Returns:
the path (possibly null)

getContainmentContext

public ContainmentContext getContainmentContext()
Return the root containment context.

Returns:
the kernel directive url

getInstallSequence

public URL[] getInstallSequence()
Return the URLs to install into the kerenel on startup.

Returns:
the block directive urls

getDebugFlag

public boolean getDebugFlag()
Return the kernel debug flag.

Returns:
the debug flag

getServerFlag

public boolean getServerFlag()
Return the kernel server flag.

Returns:
the server flag

getLoggingManager

public LoggingManager getLoggingManager()
Return the logging manager for the kernel.

Returns:
the logging manager

getKernelLogger

public Logger getKernelLogger()
Return the kernel logging channel.

Returns:
the kernel logging channel

getPoolManager

public org.apache.excalibur.mpool.PoolManager getPoolManager()
Return the kernel pool manager.

Returns:
the pool manager

getTargetDirectives

public TargetDirective[] getTargetDirectives()
Return the set of target overrides.

Returns:
the target override directives


Copyright © Apache Software Foundation. All Rights Reserved.