Examples of ConfigurationFactory


Examples of com.asakusafw.testdriver.hadoop.ConfigurationFactory

        assert arguments != null;
        ResourceProvider provider = resource.createProvider();
        ResourceManipulator manipulator = provider.createManipulator(arguments);
        if (manipulator instanceof Configurable) {
            LOG.debug("Configuring resource manipulator: {}", manipulator);
            ConfigurationFactory configuration = ConfigurationFactory.getDefault();
            ((Configurable) manipulator).setConf(configuration.newInstance());
        }
        return manipulator;
    }
View Full Code Here

Examples of com.asakusafw.testdriver.hadoop.ConfigurationFactory

    }

    private ConfigurationFactory emptyConfigurations() {
        ConfigurationFactory.Preferences prefs = new ConfigurationFactory.Preferences();
        prefs.getEnvironmentVariables().clear();
        return new ConfigurationFactory(prefs);
    }
View Full Code Here

Examples of com.bleujin.framework.configuration.ConfigurationFactory

    defaultConfig = PathMaker.getFilePath(icsConfigBase, defaultConfig);
   
   
    try {
      ConfigurationFactory defaultConfigFactory = ConfigurationFactory.getInstance("default-config");
      defaultConfigFactory.build(defaultConfig);

      Env.initialize(defaultConfigFactory.getConfiguration("root"));
    } catch (InvalidSetupException ex) {
      throw new ServletException(ex);
    } catch (ConfigurationBuildException e) {
      throw new ServletException(e);
    } catch (NotFoundXmlTagException e) {
View Full Code Here

Examples of com.intellij.execution.configurations.ConfigurationFactory

public class JBehaveConfigurationType implements LocatableConfigurationType {
    private final ConfigurationFactory factory;

  public JBehaveConfigurationType() {
        this.factory = new ConfigurationFactory(this) {

            public RunConfiguration createTemplateConfiguration(Project project) {
                return new JBehaveRunConfiguration(project, this, "");
            }
        };
View Full Code Here

Examples of com.proofpoint.configuration.ConfigurationFactory

    @Test
    public void testDefaultConfig()
    {
        long testStartTime = System.currentTimeMillis();

        ConfigurationFactory configFactory = new ConfigurationFactory(ImmutableMap.<String, String>of("node.environment", "environment"));
        Injector injector = Guice.createInjector(new NodeModule(), new ConfigurationModule(configFactory), new ApplicationNameModule("test-application"));
        NodeInfo nodeInfo = injector.getInstance(NodeInfo.class);
        Assert.assertNotNull(nodeInfo);
        Assert.assertEquals(nodeInfo.getApplication(), "test-application");
        Assert.assertEquals(nodeInfo.getEnvironment(), "environment");
View Full Code Here

Examples of com.volantis.vdp.configuration.ConfigurationFactory

    /**
     * Reads config file (scs-config.xml).
     */
    private void initConfiguration() {
        ConfigurationFactory factory = ConfigurationFactory.getInstance();
        try {
            cfg = (ISCSConfiguration)
                  factory.getConfiguration(ISCSConfiguration.class);
        } catch (ConfigurationException ce) {
            System.out.println("Can't read configuration file: " + ce);
            System.exit(1);
        }
    }
View Full Code Here

Examples of io.airlift.configuration.ConfigurationFactory

        if (config.displayUsage) {
            jCommander.usage();
        } else {
            injector = Guice.createInjector(
                    Stage.PRODUCTION,
                    new ConfigurationModule(new ConfigurationFactory(buildConfigMap(config))),
                    new LifeCycleModule(),
                    new ThriftCodecModule(),
                    new ThriftClientModule(),
                    new ThriftClientStatsModule(),
                    new NodeModule(),
View Full Code Here

Examples of net.sf.pipet.api.ConfigurationFactory

public class ConfigurationDefaultResource
  implements ConfigurationResource
{
  public static ConfigurationFactory newFactory()
  {
    ConfigurationFactory factory = ConfigurationFactory.newInstance();
   
    //factory.addDefaultModuleResourcePlugin("class", "class:"+ClassResourcePlugin.class.getName(), new ClassResourcePlugin());
    //factory.addDefaultModuleResourcePlugin("pipeline", "class:"+PipelineResourcePlugin.class.getName(), new PipelineResourcePlugin());
    factory.addDefaultModuleResourcePlugin("http", "class:"+HttpResourcePlugin.class.getName(), new HttpResourcePlugin());
    factory.addDefaultModuleResourcePlugin("jar", "class:"+JarResourcePlugin.class.getName(), new JarResourcePlugin(new DefaultResourceLoader()));
    factory.addDefaultModuleResourcePlugin("sh", "class:"+ShellCommandResourcePlugin.class.getName(), new ShellCommandResourcePlugin());
    factory.addDefaultModuleResourcePlugin("basic-io", "class:"+IOPlugin.class.getName(), new IOPlugin());
    factory.addDefaultModuleResourcePlugin("xml", "class:"+XMLPlugin.class.getName(), new IOPlugin());
   
    return factory;
  }
View Full Code Here

Examples of org.apache.commons.configuration.ConfigurationFactory

        String confStyle = "unset";

        if (StringUtils.isNotEmpty(confFile))
        {
            confPath = getRealPath(confFile);
            ConfigurationFactory configurationFactory = new ConfigurationFactory(confPath);
            configurationFactory.setBasePath(getApplicationRoot());
            configuration = configurationFactory.getConfiguration();
            confStyle = "XML";
        }
        else
        {
            confFile = findInitParameter(context, config,
View Full Code Here

Examples of org.apache.geronimo.security.jaas.ConfigurationFactory

        } else {
            serviceSubject = null;
        }
        this.m_realm = realm;
        identityService = new GeronimoIdentityService(defaultSubject);
        LoginService loginService = new GeronimoLoginService(new ConfigurationFactory() {
            @Override
            public String getConfigurationName() {
                return m_realm;
            }
View Full Code Here
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.