All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.diirt.datasource.timecache.source.DataSourceFactory Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
 * All rights reserved. Use is subject to license terms. See LICENSE.TXT
 */
package org.diirt.datasource.timecache.source;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.diirt.datasource.timecache.impl.SimpleFileDataSource;
import org.diirt.vtype.VType;

/**
 * {@link DataSource} factory.
 * @author Fred Arnaud (Sopra Group) - ITER
 */
public class DataSourceFactory {

	/**
	 * Build the list of {@link DataSource} corresponding to the specified type.
	 * TODO: build the list from extension points.
	 * @param type {@link VType}
	 * @return {@link Collection} of {@link DataSource}
	 */
	public static  Collection createSources(
			Class type) {
		List list = new ArrayList();
		list.add(new SimpleFileDataSource("resources/test/archive-export.csv"));
		list.add(new SimpleFileDataSource("resources/test/archive-export-singlePV.csv"));
		return list;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy