Package primarydatamanager.mirrorupdater.data

Examples of primarydatamanager.mirrorupdater.data.FileDataSource


      if (type.equals("http")) {
        String url = getProperty(prop, "dataSource.url", getPrimaryServerUrl());
        mDataSource = new HttpDataSource(url);
      } else if (type.equals("file")) {
        String dir = getProperty(prop, "dataSource.dir");
        mDataSource = new FileDataSource(new File(dir));
      } else {
        throw new UpdateException("dataSource.type must be either 'http' or 'file'");
      }
    }
    catch (Exception exc) {
View Full Code Here


* @author Til Schneider, www.murfman.de
*/
public class DummyConfiguration implements Configuration {

  public DataSource getDataSource() {
    return new FileDataSource(new File("prepared"));
  }
View Full Code Here

TOP

Related Classes of primarydatamanager.mirrorupdater.data.FileDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.