Sling
serves as the starting point for Sling. Felix
as the OSGi framework implementation we use. Launch Configuration
The Apache Felix
framework requires configuration parameters to be specified for startup. This servlet builds the list of parameters from three locations:
com/day/osgi/servlet/Sling.properties
is read from the servlet class path. This properties file contains default settings. After loading all properties, variable substitution takes place on the property values. A variable is indicated as ${<prop-name>}
where <prop-name>
is the name of a system or configuration property (configuration properties override system properties). Variables may be nested and are resolved from inner-most to outer-most. For example, the property value ${outer-${inner}}
is resolved by first resolving ${inner}
and then resolving the property whose name is the catenation of outer-
and the result of resolving ${inner}
.
|
|