|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.merlin.kernel.impl.DefaultKernelContext
Default implementation of a kernel context.
Field Summary | |
static String |
PRODUCT
|
static String |
VERSION
|
Constructor Summary | |
DefaultKernelContext(Repository bootstrap,
File user,
File library,
File home,
URL kernel,
URL[] blocks,
URL config,
boolean server,
boolean info,
boolean debug)
Creation of a new default kernel context. |
Method Summary | |
String |
getBootstrapRepositoryPath()
Return the runtime repository directory. |
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. |
static File |
getMerlinHomeDirectory()
Return the merlin.home directory. |
static File |
getMerlinLocalRepositoryDirectory()
If the user has declare a local repository then return that (based on the merlin.local.repository sytem property, otherwise return the merlin.home repository directory. |
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 |
String |
toString()
|
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 |
Field Detail |
public static final String PRODUCT
public static final String VERSION
Constructor Detail |
public DefaultKernelContext(Repository bootstrap, File user, File library, File home, URL kernel, URL[] blocks, URL config, boolean server, boolean info, boolean debug) throws NullPointerException, KernelException
bootstrap
- the system repositoryuser
- the user repository directorylibrary
- directory against which extension jar
directives shall be anchoredhome
- local working directorykernel
- the kernel configuration URL - if null, the
default kernel profile will be loaded from the bootstrap repositoryblocks
- a sequence of block urlsconfig
- a url to a configuration override descriptorserver
- server mode flagdebug
- debug flag
NullPointerException
- if the supplied bootstrap repository is null
KernelException
- if an error occurs during context creationMethod Detail |
public Logger getKernelLogger()
getKernelLogger
in interface KernelContext
public ModelFactory getModelFactory()
getModelFactory
in interface KernelContext
public Repository getRepository()
getRepository
in interface KernelContext
public File getLibraryPath()
getLibraryPath
in interface KernelContext
public File getHomePath()
getHomePath
in interface KernelContext
public File getTempPath()
getTempPath
in interface KernelContext
public ContainmentContext getContainmentContext()
getContainmentContext
in interface KernelContext
public URL[] getInstallSequence()
getInstallSequence
in interface KernelContext
public boolean getDebugFlag()
getDebugFlag
in interface KernelContext
public boolean getServerFlag()
getServerFlag
in interface KernelContext
public LoggingManager getLoggingManager()
getLoggingManager
in interface KernelContext
public org.apache.excalibur.mpool.PoolManager getPoolManager()
getPoolManager
in interface KernelContext
public TargetDirective[] getTargetDirectives()
getTargetDirectives
in interface KernelContext
public String getBootstrapRepositoryPath()
public String toString()
public static File getMerlinLocalRepositoryDirectory()
public static File getMerlinHomeDirectory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |