}
public void registerDefaults()
{
final Configuration config = LibLayoutBoot.getInstance().getGlobalConfig();
final Iterator sit = config.findPropertyKeys(SIMPLE_PREFIX);
while (sit.hasNext())
{
final String key = (String) sit.next();
final String name = key.substring(SIMPLE_PREFIX.length()).toLowerCase();
final String c = config.getConfigProperty(key);
final Object module =
ObjectUtilities.loadAndInstantiate(c, CSSValueFactory.class, CSSValueReadHandler.class);
if (module instanceof CSSValueReadHandler)
{
handlers.put(name, module);
}
else
{
Log.warn("Invalid module implementation: " + c);
}
}
final Iterator cit = config.findPropertyKeys(COMPOUND_PREFIX);
while (cit.hasNext())
{
final String key = (String) cit.next();
final String name = key.substring(COMPOUND_PREFIX.length()).toLowerCase();
final String c = config.getConfigProperty(key);
final Object module =
ObjectUtilities.loadAndInstantiate(c, CSSValueFactory.class, CSSCompoundValueReadHandler.class);
if (module instanceof CSSCompoundValueReadHandler)
{
compoundHandlers.put(name, module);