git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@91585 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
93eb3cda32
commit
9c4a04e99e
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue