Code example for PropertyResourceBundle

0
		loadDbProperties(); 
	} 
 
	private void loadDbProperties() { 
		try { 
			dbProperties = new PropertyResourceBundle(DecathlonCalculator.class.getResourceAsStream("db.properties"));
		} catch (IOException e) {
			throw new RuntimeException(e.getMessage(), e.getCause());
		} 
	} 
 
	@Override 
	public List<Athlete> load(Object... additionalParams) {
		if (additionalParams.length < 1) throw new IllegalArgumentException("One parameter should be");
		if (!(additionalParams[0] instanceof String)) throw new IllegalArgumentException("One parameter should be");
		if (connection == null) {
			connectionIsCreatedByMe = true;
			openMySQLConnection(); 
		} 
 
		List<Athlete> athletes = new ArrayList<Athlete>(100);