@@ -0,0 +1,789 @@
+package org.muml.psm.allocation.algorithm.main;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * A configuration object that manages configuration objects for%0A * different strategies.%0A */%0Apublic class MultiStrategyConfiguration %7B%0A%09private Map%3CClass%3C?%3E, Object%3E strategyConfigMap;%0A%09%0A%09protected Map%3CClass%3C?%3E, Object%3E getStrategyConfigMap() %7B%0A%09%09if (strategyConfigMap == null) %7B%0A%09%09%09strategyConfigMap = new HashMap%3CClass%3C?%3E, Object%3E();%0A%09%09%7D%0A%09%09return strategyConfigMap;%0A%09%7D%0A%09%0A%09public void addConfiguration(Class%3C?%3E strategy, Object configuration) %7B%0A%09%09getStrategyConfigMap().put(strategy, configuration);%0A%09%7D%0A%09%0A%09public %3CV%3E V getConfigurationFor(Class%3C?%3E strategy, Class%3CV%3E asClass) %7B%0A%09%09Object configuration = getStrategyConfigMap().get(strategy);%0A%09%09return asClass.cast(configuration);%0A%09%7D%0A%0A%7D%0A

Add MultiStrategyConfiguration class