Package com.asakusafw.thundergate.runtime.property

Examples of com.asakusafw.thundergate.runtime.property.PropertyLoader


        assertThat(provider.getExportCommand(context).size(), is(1));
        assertThat(provider.getFinalizeCommand(context).size(), is(1));
    }

    private BulkLoaderScript loadScript(JobflowInfo info) throws IOException {
        PropertyLoader loader = new PropertyLoader(info.getPackageFile(), "default");
        BulkLoaderScript script;
        try {
            List<ImportTable> importers = ImportTable.fromProperties(
                    loader.loadImporterProperties(),
                    getClass().getClassLoader());
            List<ExportTable> exporters = ExportTable.fromProperties(
                    loader.loadExporterProperties(),
                    getClass().getClassLoader());
            script = new BulkLoaderScript(importers, exporters);
        } finally {
            loader.close();
        }
        return script;
    }
View Full Code Here


     * @param targetName ターゲット名
     * @return プロパティオブジェクト
     * @throws IOException プロパティの取得に失敗した場合
     */
    protected Properties getImportProp(File file, String targetName) throws IOException {
        PropertyLoader loader = new PropertyLoader(file, targetName);
        try {
            return loader.loadImporterProperties();
        } finally {
            loader.close();
        }
    }
View Full Code Here

     * @param targetName ターゲット名
     * @return プロパティオブジェクト
     * @throws IOException プロパティの取得に失敗した場合
     */
    protected Properties getExportProp(File file, String targetName) throws IOException {
        PropertyLoader loader = new PropertyLoader(file, targetName);
        try {
            return loader.loadExporterProperties();
        } finally {
            loader.close();
        }
    }
View Full Code Here

TOP

Related Classes of com.asakusafw.thundergate.runtime.property.PropertyLoader

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.