This commit is contained in:
Gianpaolo Coro 2014-02-14 11:01:50 +00:00
parent 93eb3cda32
commit 9c4a04e99e
1 changed files with 1 additions and 4 deletions

View File

@ -45,16 +45,13 @@ public class DynamicTransducerersFactory {
Map<String,Transducerer> transducerList = new LinkedHashMap<String,Transducerer>(); Map<String,Transducerer> transducerList = new LinkedHashMap<String,Transducerer>();
for (String dynatransducer:dynatransducers){ for (String dynatransducer:dynatransducers){
Object algclass = Class.forName(dynatransducer).newInstance(); Object algclass = Class.forName(dynatransducer).newInstance();
String prefix = dynatransducer;
if (dynatransducer.length()>3)
prefix = dynatransducer.substring(0,3);
DynamicTransducer g = (DynamicTransducer) algclass; DynamicTransducer g = (DynamicTransducer) algclass;
Map<String,Transducerer> subtrans = g.getTransducers(config); Map<String,Transducerer> subtrans = g.getTransducers(config);
if (subtrans!=null){ if (subtrans!=null){
for (String stransK:subtrans.keySet()){ for (String stransK:subtrans.keySet()){
Transducerer t = subtrans.get(stransK); Transducerer t = subtrans.get(stransK);
t.setConfiguration(config); t.setConfiguration(config);
transducerList.put(prefix+"."+stransK,t); transducerList.put(stransK,t);
} }
} }
} }