Package net.raymanoz.migrate

Source Code of net.raymanoz.migrate.ScriptCreatorAssemblerImpl

package net.raymanoz.migrate;

import net.raymanoz.config.Configuration;
import net.raymanoz.io.FileImpl;
import net.raymanoz.io.File;
import net.raymanoz.util.FileUtilImpl;
import net.raymanoz.util.StreamUtilImpl;
import net.raymanoz.util.Properties;

public class ScriptCreatorAssemblerImpl implements ScriptCreatorAssembler {

  private Configuration config;
  public ScriptCreatorAssemblerImpl(Configuration config){
    this.config = config;
  }
  public ScriptList newScriptList(File[] files, int numberOfDigits, long dbVersion) {
    return new ScriptListImpl(files, numberOfDigits, dbVersion, config);
  }

  public FileUtilImpl newFileUtil() {
    return new FileUtilImpl(new StreamUtilImpl());
  }

  public File newFile(File parent, String fileName) {
    return new FileImpl(parent, fileName);
  }

  public Properties getUMigrateProperties() {
    return config.uMigrateProperties();
  }

}
TOP

Related Classes of net.raymanoz.migrate.ScriptCreatorAssemblerImpl

TOP
Copyright © 2018 www.massapi.com. 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.