/** * Adds a DataSourceDefinition from the given properties. * * @param props the properties (key and values must be strings) * @throws ConfigurationException on error */ public void addDataSourceDefinition(String name, Properties props) throws ConfigurationException { DataSourceDefinition def = new DataSourceDefinition(name, props); for (DataSourceDefinition existing : defs) { if (existing.getLogicalName().equals(def.getLogicalName())) { throw new ConfigurationException("Duplicate logicalName for a DataSource: " + def.getLogicalName()); } } defs.add(def); }
/** * Adds a DataSourceDefinition from the given properties. * * @param props the properties (key and values must be strings) * @throws ConfigurationException on error */ public void addDataSourceDefinition(String name, Properties props) throws ConfigurationException { DataSourceDefinition def = new DataSourceDefinition(name, props); for (DataSourceDefinition existing : defs) { if (existing.getLogicalName().equals(def.getLogicalName())) { throw new ConfigurationException("Duplicate logicalName for a DataSource: " + def.getLogicalName()); } } defs.add(def); }
/** * Adds a DataSourceDefinition from the given properties. * * @param props the properties (key and values must be strings) * @throws ConfigurationException on error */ public void addDataSourceDefinition(String name, Properties props) throws ConfigurationException { DataSourceDefinition def = new DataSourceDefinition(name, props); for (DataSourceDefinition existing : defs) { if (existing.getLogicalName().equals(def.getLogicalName())) { throw new ConfigurationException("Duplicate logicalName for a DataSource: " + def.getLogicalName()); } } defs.add(def); }