Examples of ConfigurationProvider


Examples of com.asakusafw.runtime.util.hadoop.ConfigurationProvider

    @SuppressWarnings("deprecation")
    @Before
    public void setUp() throws Exception {
        UnitTestUtil.startUp();
        service.initialize("target", "batch", "flow", "exec", "tester");
        service.setConf(new ConfigurationProvider().newInstance());
        ConfigurationLoader.getProperty().setProperty(
                Constants.PROP_KEY_BASE_PATH,
                folder.getRoot().getAbsoluteFile().toURI().toString());
    }
View Full Code Here

Examples of com.asakusafw.runtime.util.hadoop.ConfigurationProvider

    @SuppressWarnings("deprecation")
    @Before
    public void setUp() throws Exception {
        UnitTestUtil.startUp();
        service.initialize("target", "tester");
        service.setConf(new ConfigurationProvider().newInstance());
        ConfigurationLoader.getProperty().setProperty(
                Constants.PROP_KEY_BASE_PATH,
                folder.getRoot().getAbsoluteFile().toURI().toString());
    }
View Full Code Here

Examples of com.asakusafw.runtime.util.hadoop.ConfigurationProvider

            throw new AssertionError(e);
        }
    }

    private Configuration getConfiguration() {
        return new ConfigurationProvider().newInstance();
    }
View Full Code Here

Examples of com.couchbase.client.vbucket.ConfigurationProvider

          }
          LOGGER.log(Level.INFO, "Reconnect attempt {0}, waiting {1}ms",
            new Object[]{reconnectAttempt, waitTime});
          Thread.sleep(waitTime);

          ConfigurationProvider oldConfigProvider = getConfigurationProvider();
          Reconfigurable oldRec = oldConfigProvider.getReconfigurable();

          ConfigurationProvider newConfigProvider =
            new ConfigurationProviderHTTP(storedBaseList, bucket, pass);
          newConfigProvider.subscribe(bucket, oldRec);

          setConfigurationProvider(newConfigProvider);
          oldConfigProvider.shutdown();

          if (!doingResubscribe.compareAndSet(true, false)) {
View Full Code Here

Examples of com.couchbase.client.vbucket.provider.ConfigurationProvider

   * @throws ConfigurationException
   */
  public TapConnectionProvider(CouchbaseConnectionFactory cf) throws IOException {
    super(cf, AddrUtil.getAddresses(cf.getVBucketConfig().getServers()));
    this.cf=cf;
    ConfigurationProvider cp = cf.getConfigurationProvider();
    cp.subscribe(this);
  }
View Full Code Here

Examples of com.google.api.ads.common.lib.conf.ConfigurationProvider

  @Override
  protected void configure() {}

  protected void configureConfigurations(URL propertiesUrl) {
    bind(Configuration.class).annotatedWith(Names.named("productFramework")).toProvider(
        new ConfigurationProvider(ConfigurationHelper.newList(false, propertiesUrl), null));
  }
View Full Code Here

Examples of com.opensymphony.xwork.config.ConfigurationProvider

        if (Monitor.activeCount() == 0)
            Monitor.monitor();
    }

    private void setUpConfigurationProvider() {
        ConfigurationProvider provider = createConfigurationProvider();

        ConfigurationManager.destroyConfiguration();
        //noinspection unchecked
        ConfigurationManager.getConfigurationProviders().set(0, provider);
    }
View Full Code Here

Examples of com.opensymphony.xwork2.config.ConfigurationProvider

* @version $Id$
*/
public class XmlConfigurationProviderGlobalResultInheritenceTest extends ConfigurationTestBase {

    public void testGlobalResultInheritenceTest() throws Exception {
        ConfigurationProvider provider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-global-result-inheritence.xml");

        ConfigurationManager configurationManager = new ConfigurationManager();
        configurationManager.addContainerProvider(new XWorkConfigurationProvider());
        configurationManager.addContainerProvider(provider);
        Configuration configuration = configurationManager.getConfiguration();
View Full Code Here

Examples of com.opensymphony.xwork2.config.ConfigurationProvider

* @version $Date$ $Id$
*/
public class XmlConfigurationProviderResultTypesTest extends ConfigurationTestBase {

  public void testPlainResultTypesParams() throws Exception {
    ConfigurationProvider configurationProvider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml");
   
    PackageConfig packageConfig = configuration.getPackageConfig("xworkResultTypesTestPackage1");
    Map resultTypesConfigMap = packageConfig.getResultTypeConfigs();
   
    assertEquals(resultTypesConfigMap.size(), 2);
View Full Code Here

Examples of com.opensymphony.xwork2.config.ConfigurationProvider

    assertEquals(result2ParamsMap.get("paramA"), "valueA");
    assertEquals(result2ParamsMap.get("paramB"), "valueB");
  }
 
  public void testInheritedResultTypesParams() throws Exception {
    ConfigurationProvider configurationProvider = buildConfigurationProvider("com/opensymphony/xwork2/config/providers/xwork-test-result-types.xml");
   
    PackageConfig packageConfig = configuration.getPackageConfig("xworkResultTypesTestPackage2");
    Map actionConfigMap = packageConfig.getActionConfigs();
   
   
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.