contentFunctions = new HashMap();
}
public void registerDefault ()
{
final Configuration config = LibLayoutBoot.getInstance().getGlobalConfig();
final Iterator valueKeys = config.findPropertyKeys(VALUE_FUNCTIONS_KEY_RANGE);
while (valueKeys.hasNext())
{
final String key = (String) valueKeys.next();
final String value = config.getConfigProperty(key);
final String name = key.substring(VALUE_FUNCTIONS_KEY_RANGE.length());
final Object maybeFunction = ObjectUtilities.loadAndInstantiate
(value, FunctionFactory.class, StyleValueFunction.class);
if (maybeFunction instanceof StyleValueFunction)
{
styleFunctions.put (name.toLowerCase(), maybeFunction);
}
}
final Iterator contentKeys = config.findPropertyKeys(CONTENT_FUNCTIONS_KEY_RANGE);
while (contentKeys.hasNext())
{
final String key = (String) contentKeys.next();
final String value = config.getConfigProperty(key);
final String name = key.substring(CONTENT_FUNCTIONS_KEY_RANGE.length());
final Object maybeFunction = ObjectUtilities.loadAndInstantiate
(value, FunctionFactory.class, ContentFunction.class);
if (maybeFunction instanceof ContentFunction)
{