Examples of addConfiguration()


Examples of org.andromda.andromdapp.AndroMDApp.addConfiguration()

            }
            andromdapp.addConfigurationUri(internalConfiguration.toString());
            final String configuration = this.getConfigurationContents();
            if (configuration != null)
            {
                andromdapp.addConfiguration(this.getConfigurationContents());
            }
            andromdapp.run();
        }
        catch (final Throwable throwable)
        {
View Full Code Here

Examples of org.andromda.andromdapp.AndroMDApp.addConfiguration()

        {
            final AndroMDApp andromdapp = new AndroMDApp();
            final String configuration = this.getConfigurationContents();
            if (configuration != null)
            {
                andromdapp.addConfiguration(this.getConfigurationContents());
            }
            andromdapp.clean();
        }
        catch (final NoClassDefFoundError ncdfe)
        {
View Full Code Here

Examples of org.apache.airavata.registry.api.AiravataRegistry2.addConfiguration()

                                     @FormParam("date") String date) {
        AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
        try {
            DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            Date formattedDate = dateFormat.parse(date);
            airavataRegistry.addConfiguration(key, value, formattedDate);
            Response.ResponseBuilder builder = Response.status(Response.Status.OK);
            builder.entity("Configuration updated successfully...");
            return builder.build();
        } catch (Throwable e) {
            return WebAppUtil.reportInternalServerError(ResourcePathConstants.ConfigResourcePathConstants.UPDATE_CONFIGURATION, e);
View Full Code Here

Examples of org.apache.ambari.server.state.configgroup.ConfigGroup.addConfiguration()

    properties.put("key1", "value1");
    Config config = new ConfigImpl("test-site");
    config.setProperties(properties);
    config.setVersionTag("version100");

    configGroup.addConfiguration(config);
    Assert.assertEquals(2, configGroup.getConfigurations().values().size());

    configGroup.setName("NewName");
    configGroup.setDescription("NewDesc");
    configGroup.setTag("NewTag");
View Full Code Here

Examples of org.apache.bookkeeper.conf.ClientConfiguration.addConfiguration()

            underlyingPM = LocalDBPersistenceManager.instance();

        } else {
            try {
                ClientConfiguration bkConf = new ClientConfiguration();
                bkConf.addConfiguration(conf.getConf());
                bk = new BookKeeper(bkConf, zk, clientChannelFactory);
            } catch (KeeperException e) {
                logger.error("Could not instantiate bookkeeper client", e);
                throw new IOException(e);
            }
View Full Code Here

Examples of org.apache.commons.configuration.CombinedConfiguration.addConfiguration()

  public ConfigElement combine(ConfigElement combinee) {
    HierarchicalConfiguration conf2 = this.configuration;
    HierarchicalConfiguration conf1 = ((ConfigurationConfig) combinee).configuration;
    NodeCombiner combiner = new UnionCombiner();
    CombinedConfiguration cc = new CombinedConfiguration(combiner);
    cc.addConfiguration(conf1);
    cc.addConfiguration(conf2);
    ConfigurationConfig combined = new ConfigurationConfig();
    cc.setExpressionEngine(new XPathExpressionEngine());
    combined.configuration = cc;
    return combined;
View Full Code Here

Examples of org.apache.commons.configuration.CombinedConfiguration.addConfiguration()

    HierarchicalConfiguration conf2 = this.configuration;
    HierarchicalConfiguration conf1 = ((ConfigurationConfig) combinee).configuration;
    NodeCombiner combiner = new UnionCombiner();
    CombinedConfiguration cc = new CombinedConfiguration(combiner);
    cc.addConfiguration(conf1);
    cc.addConfiguration(conf2);
    ConfigurationConfig combined = new ConfigurationConfig();
    cc.setExpressionEngine(new XPathExpressionEngine());
    combined.configuration = cc;
    return combined;
  }
View Full Code Here

Examples of org.apache.commons.configuration.CompositeConfiguration.addConfiguration()

   * set to 1 second to prevent excessive date stamp checking.
   */
  private void loadConfiguration(String configurationFile) throws ConfigurationException {
    //Properties from system properties
    CompositeConfiguration compositeConfig = new CompositeConfiguration();
    compositeConfig.addConfiguration(new SystemConfiguration());
    //Properties from XML file
    XMLConfiguration xmlConfig = null;
    if (configurationFile!=null) {
      xmlConfig = new XMLConfiguration(configurationFile);
    } else {
View Full Code Here

Examples of org.apache.commons.configuration.CompositeConfiguration.addConfiguration()

    long refreshDelay = xmlConfig.getLong(Property.UDDI_RELOAD_DELAY, 1000l);
    log.debug("Setting refreshDelay to " + refreshDelay);
    FileChangedReloadingStrategy fileChangedReloadingStrategy = new FileChangedReloadingStrategy();
    fileChangedReloadingStrategy.setRefreshDelay(refreshDelay);
    xmlConfig.setReloadingStrategy(fileChangedReloadingStrategy);
    compositeConfig.addConfiguration(xmlConfig);
    //Making the new configuration globally accessible.
    config = compositeConfig;
    loadManager();
  }
View Full Code Here

Examples of org.apache.commons.configuration.CompositeConfiguration.addConfiguration()

      // String
      // fileName=FilenameUtils.separatorsToSystem("C:\\init\\MOBILEguard\\yajsw/lib/jvmstat/*.jar");
      // System.out.println("FileName: "+fileName);
      CompositeConfiguration compConfig = new CompositeConfiguration();
      AbstractConfiguration configuraton = new BaseConfiguration();
      compConfig.addConfiguration(new EnvironmentConfiguration());
      configuraton.setProperty("wrapper.java.classpath.1", "${VERSANT_ROOT}/lib/jvi.*jar");
      configuraton.setProperty("wrapper.java.classpath.2", "${GROOVY_HOME}/lib/*.jar");
      compConfig.addConfiguration(configuraton);
      System.out.println("Configuration: " + ConfigurationConverter.getProperties(compConfig));
      System.out.println("subset: " + ConfigurationConverter.getProperties(compConfig.subset("wrapper.java")));
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.