Revision 43239
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/DefaultDataManager.java | ||
---|---|---|
390 | 390 |
|
391 | 391 |
@Override |
392 | 392 |
public DataStore openStore(String providerName, Object... arguments) throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException { |
393 |
if( arguments.length == 1 ) { |
|
394 |
// Desde jython entra por este metodo en lugar de los especificos |
|
395 |
// de DataStoreParameters o DynObject |
|
396 |
if( arguments[0] instanceof DataStoreParameters ) { |
|
397 |
return this.openStore(providerName, (DataStoreParameters)(arguments[0])); |
|
398 |
} else if( arguments[0] instanceof DynObject ) { |
|
399 |
return this.openStore(providerName, (DynObject)(arguments[0])); |
|
400 |
} |
|
401 |
} |
|
393 | 402 |
if( (arguments.length % 2)!= 0 ) { |
394 | 403 |
throw new ValidateDataParametersException(); |
395 | 404 |
} |
Also available in: Unified diff