The goal of this document is to help you understand the Kilim configuration DTD.
Therefore, each DTD element will be detailed int this document.
The root element of a kcf
is a CONFIGURATION
. A configuration contains a set of elements (ELEM
). Each ELEM
could contain a property (PROPERTY
), a class atom (ATOM
), an implicit factory (IMPLICIT_FACTORY
), an assemblage (ASSEMBLAGE
), an alias (ALIAS
), a sequence (SEQUENCE
) or a sub-configuration (CONFIGURATION
).
Note that the root configuration could provide two attributes: one to describe the Kernel class to use to return the actual bootstrap configuration (bootstrap
attribute), the other to describe the generated Kernel class (generated
attribute). Both should be scoped Java class names.
Refer to the "Kilim getting started" for further information.
PROPERTY
The PROPERTY
elements are used to register values of a number of primitive types (String, char, boolean, byte, short, int, long, float, double or null).
The PROPERTY
element has two required attributes: the type
of the property and its value
(as a string).
ATOM
An ATOM
has one required attribute: the name of the class used to instanciate it. This class must have a public constructor with no arguments.
An ATOM
could also be an explicit factory, in this case the ATOM
's class must implements the org.objectweb.jonathan.apis.kernel.Factory
interface. Therefore, the needed context is provided by a CONFIGURATION
through an ASSEMBLAGE
.
IMPLICIT_FACTORY
ASSEMBLAGE
ALIAS
SEQUENCE
Last updated: 2002-08-23