org.objectweb.jonathan.libs.kernel

Class KKernel


public final class KKernel
extends java.lang.Object

Bootstrap class of the jonathan configuration mechanism. Provides the runtime configuration file mechanism by using XML decoders and loads the java system properties.

Must be provided in the application's compiled configuration by specifying the bootstrap attribute of the root context in the XML configuration file to be compiled. KKernel is loaded in the java code of the compiled configuration file.

jonathan's example of KKernel use:

Method Summary

static Context
newConfiguration(Context _context, Class _c)
The jonathan Kernel's runtime bootstrap mechanism.

Method Details

newConfiguration

public static Context newConfiguration(Context _context,
                                       Class _c)
The jonathan Kernel's runtime bootstrap mechanism. This method
  • loads its context parameter's /jonathan/KKernel/xml_decoder value; it must be an implementation of File2Configuration
  • loads its context parameter's /jonathan/KKernel/runtime_configuration_file String property and decodes the corresponding runtime configuration file with the previously loaded decoder; the decoded components are imported in a duplicata of the given Context parameter.
  • loads its context parameter's /jonathan/KKernel/properties_decoder (it must be an implementation of Properties2Configuration) and uses it to import the java System properties

Parameters:
_context - the compiled configuration to bootstrap on
_c -

Returns:
the application's complete runtime configuration