Revision 20088
trunk/libraries/libDataSource/src/org/gvsig/data/DataManager.java | ||
---|---|---|
72 | 72 |
Iterator iterator=registers.iterator(); |
73 | 73 |
while (iterator.hasNext()) { |
74 | 74 |
RegisterInfo registerInfo = (RegisterInfo) iterator.next(); |
75 |
if (registerInfo.parametersClazz.isAssignableFrom(parameters.getClass())){
|
|
75 |
if (parameters.getDataStoreName().equals(registerInfo.name)){
|
|
76 | 76 |
try { |
77 | 77 |
IDataStore dataStore= (IDataStore)registerInfo.clazz.newInstance(); |
78 | 78 |
dataStore.init(parameters); |
... | ... | |
139 | 139 |
Iterator iterator=registers.iterator(); |
140 | 140 |
while (iterator.hasNext()) { |
141 | 141 |
RegisterInfo registerInfo = (RegisterInfo) iterator.next(); |
142 |
if (parameters.getClass().isAssignableFrom(registerInfo.parametersClazz)){
|
|
142 |
if (parameters.getDataExplorerName().equals(registerInfo.name)){
|
|
143 | 143 |
try { |
144 | 144 |
IDataExplorer dataSource= (IDataExplorer)registerInfo.clazz.newInstance(); |
145 | 145 |
dataSource.init(parameters); |
Also available in: Unified diff