You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Laurent Rieu <pa...@fnac.tm.fr> on 2003/06/18 17:23:33 UTC
[merlin] DefaultKernelLoader
Hi,
Looks like the current implementation of the Kernel interface (DefaultKernel) expects a 'profile' (ie a private Configuration object built from something like the kernel.xml file) to be part of the context. However this implementation doesn't complain when no profile is found : an empty (?) Configuration object is simply instantiated in this case.
This is fine, but the current implementation of the KernelLoader interface (DefaultKernelLoader) expects a profile, and does complain when no profile is part of the parameters that are passed to it in the build() method. What about adding a simple test in the DefaultKernelLoader.build() method like the following :
public Kernel build( Map map ) throws KernelException {
[...]
if (profile != null) {
// Build the Kernel configuration from the profile File
kernel.configure( getKernelConfiguration( profile ) );
}
[...]
}
Everything would now work ok when no profile is passed to the KernelLoader.
Laurent
************************************************************************
Ce message a ete inspecte par un anti-virus
Nous vous rappelons que la taille des messages ne doit pas depasser 1.5 Mo
************************************************************************