org.diirt.datasource.timecache.source.DataSourceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datasource-timecache Show documentation
Show all versions of datasource-timecache Show documentation
Local cache for time series gathered from multiple sources.
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;
}
}