Package org.lilyproject.runtime.configuration

Examples of org.lilyproject.runtime.configuration.ConfManagerImpl


            confDirs.add(new File(customConfDir));
        }
        if (defaultConfDir != null) {
            confDirs.add(new File(defaultConfDir));
        }
        return new ConfManagerImpl(confDirs);
    }
View Full Code Here


        }



        LilyRuntimeSettings settings = new LilyRuntimeSettings();
        settings.setConfManager(new ConfManagerImpl(confDirs));
        settings.setDisabledModuleIds(disabledModuleIds);
        settings.setRepository(artifactRepository);
        settings.setSourceLocations(sourceLocations);
        settings.setEnableArtifactSharing(!cmd.hasOption(disableClassSharingOption.getOpt()));
View Full Code Here

    protected boolean startRuntime() {
        return true;
    }

    protected ConfManager getConfManager() throws Exception {
        return new ConfManagerImpl(Collections.<File>emptyList());
    }
View Full Code Here

        return createSettings(Collections.singletonList(confDir), mavenRepoLocation);
    }

    public static LilyRuntimeSettings createSettings(List<File> confDirs, String mavenRepoLocation) throws Exception {
        LilyRuntimeSettings settings = new LilyRuntimeSettings();
        settings.setConfManager(new ConfManagerImpl(confDirs));

        ArtifactRepository artifactRepository = new ChainedMaven2StyleArtifactRepository(mavenRepoLocation);
        settings.setRepository(artifactRepository);

        return settings;
View Full Code Here

        conflistenmodConfDir = new File(test1ConfDir, "conflistenmod");
        writeConf(conflistenmodConfDir, "foobar.xml", "<conf/>");

        // Create the ConfManager
        confDirs.add(test1ConfDir);
        return new ConfManagerImpl(confDirs);
    }
View Full Code Here

    public void testRuntimeWithoutModules() throws Exception {
        LilyRuntimeModel model = new LilyRuntimeModel();
        LilyRuntimeSettings settings = new LilyRuntimeSettings();
        settings.setModel(model);
        settings.setRepository(dummyRepository);
        settings.setConfManager(new ConfManagerImpl());

        LilyRuntime runtime = new LilyRuntime(settings);
        runtime.start();
        runtime.stop();
View Full Code Here

        List<File> confDirs = new ArrayList<File>();

        confDirs.add(createConfDir("conftest1"));
        confDirs.add(createConfDir("conftest2"));

        return new ConfManagerImpl(confDirs);
    }
View Full Code Here

TOP

Related Classes of org.lilyproject.runtime.configuration.ConfManagerImpl

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.