@SuppressWarnings("unchecked") public LanguageConfiguration(String property, String[] defaultConfig){ if(property == null || property.isEmpty()){ throw new IllegalArgumentException("The parsed property MUST NOT be NULL nor empty!"); } this.property = property; this.defaultConfig = defaultConfig != null ? Arrays.asList(defaultConfig) : Collections.EMPTY_LIST; try { parseConfiguration(this.defaultConfig); } catch (ConfigurationException e) { throw new IllegalArgumentException("Inalied default configuration " + e.getMessage()); } }
@SuppressWarnings("unchecked") public LanguageConfiguration(String property, String[] defaultConfig){ if(property == null || property.isEmpty()){ throw new IllegalArgumentException("The parsed property MUST NOT be NULL nor empty!"); } this.property = property; this.defaultConfig = defaultConfig != null ? Arrays.asList(defaultConfig) : Collections.EMPTY_LIST; try { parseConfiguration(this.defaultConfig); } catch (ConfigurationException e) { throw new IllegalArgumentException("Inalied default configuration " + e.getMessage()); } }
/** * Creates a new configuration with the minimal set of required properties * @param id the ID of the Yard * @throws IllegalArgumentException if the parsed valued do not fulfil the * requirements. */ public SimpleYardConfig(String id) throws IllegalArgumentException { super(id); try { isValid(); } catch (ConfigurationException e) { throw new IllegalArgumentException(e.getMessage(),e); } } /**
/** * Creates a new configuration with the minimal set of required properties * @param id the ID of the Yard * @throws IllegalArgumentException if the parsed valued do not fulfil the * requirements. */ public SimpleYardConfig(String id) throws IllegalArgumentException { super(id); try { isValid(); } catch (ConfigurationException e) { throw new IllegalArgumentException(e.getMessage(),e); } } /**
/** * Creates a new config with the minimal set of required properties * * @param id * the ID of the Yard * @param solrServer * the base URL of the {@link SolrServer} * @throws IllegalArgumentException * if the parsed valued do not fulfil the requirements. */ public SolrYardConfig(String id, String solrServer) throws IllegalArgumentException { super(id); setSolrServerLocation(solrServer); try { isValid(); } catch (ConfigurationException e) { throw new IllegalArgumentException(e.getMessage(), e); } }
/** * Creates a new config with the minimal set of required properties * * @param id * the ID of the Yard * @param solrServer * the base URL of the {@link SolrServer} * @throws IllegalArgumentException * if the parsed valued do not fulfil the requirements. */ public SolrYardConfig(String id, String solrServer) throws IllegalArgumentException { super(id); setSolrServerLocation(solrServer); try { isValid(); } catch (ConfigurationException e) { throw new IllegalArgumentException(e.getMessage(), e); } }
pdsfFilter = DataSourceConfigManager.getPooledDSFFilter(loadedConfig); } catch (ConfigurationException e) { throw new IllegalArgumentException(e.getMessage(), e);
pdsfFilter = DataSourceConfigManager.getPooledDSFFilter(loadedConfig); } catch (ConfigurationException e) { throw new IllegalArgumentException(e.getMessage(), e);