Displaying differences for changeset |
@@ -146,8 +146,8 @@ |
/** |
* Filters the services as specified in config files. |
- * @param c |
- * @param orig |
+ * @param c the servlet context |
+ * @param orig the original set of service classes |
*/ |
public static void filterServices(ServletContext c, Set<Class<?>> orig) { |
try { |
@@ -273,9 +273,16 @@ |
if (!yaml.containsKey(KEY_CONFIG)) { |
throw new RuntimeException("Missing: 'Config: ...', ignoring."); |
} |
- conf.putAll((Map) yaml.get(KEY_CONFIG)); |
+ |
+ Map<Object, Object> j = (Map) yaml.get(KEY_CONFIG); |
+ for (Map.Entry<Object, Object> entry : j.entrySet()) { |
+ conf.put(entry.getKey().toString(), entry.getValue().toString()); |
+ } |
+ |
if (yaml.containsKey(KEY_SERVICES)) { |
- services.addAll((List) yaml.get(KEY_SERVICES)); |
+ for (Object entry : (List) yaml.get(KEY_SERVICES)) { |
+ services.add(entry.toString()); |
+ } |
} |
} |