Examples of SystemConfiguration


Examples of com.adito.properties.impl.systemconfig.SystemConfiguration

            dbServer = new EmbeddedHSQLDBServer("true".equalsIgnoreCase(SystemProperties.get("adito.hsqldb.tcpipServer",
                "false")));

            // Load the property classes
            PropertyClassManager.getInstance().registerPropertyClass(new ProfileProperties());
            PropertyClassManager.getInstance().registerPropertyClass(new SystemConfiguration());
            PropertyClassManager.getInstance().registerPropertyClass(new UserAttributes());
            PropertyClassManager.getInstance().registerPropertyClass(new PolicyAttributes());
            PropertyClassManager.getInstance().registerPropertyClass(new RealmProperties());
            PropertyClassManager.getInstance().registerPropertyClass(new ApplicationParameters());
            PropertyClassManager.getInstance().registerPropertyClass(new ResourceAttributes());
View Full Code Here

Examples of com.openshift.client.configuration.SystemConfiguration

    public IOpenShiftConnection getOpenShiftConnection() throws IOException {
        if (service == null) {
            try {

                UserConfiguration userConfiguration = new UserConfiguration(
                        new SystemConfiguration(new DefaultConfiguration()));
                if (username == null)
                    username = userConfiguration.getRhlogin();

                authKey = getBrokerAuthKey();
                authIV = getBrokerAuthIV();
View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

   * 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.SystemConfiguration

                logger.warn("Failed to create default dynamic configuration", e);
            }

            //TODO: sys/env above urls?
            if (!Boolean.getBoolean(DISABLE_DEFAULT_SYS_CONFIG)) {
                SystemConfiguration sysConfig = new SystemConfiguration();
                config.addConfiguration(sysConfig, SYS_CONFIG_NAME);
            }
            if (!Boolean.getBoolean(DISABLE_DEFAULT_ENV_CONFIG)) {
                EnvironmentConfiguration envConfig = new EnvironmentConfiguration();
                config.addConfiguration(envConfig, ENV_CONFIG_NAME);
View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

        // interpolation takes place across the entirety of the
        // composite configuration. Without doing this each
        // configuration object only interpolates variables defined
        // inside itself.
        final MyConfiguration conf = new MyConfiguration();
        conf.addConfiguration(new SystemConfiguration()
        {
            protected String interpolate(String o)
            {
                return conf.interpolate(o);
            }
View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

    protected final static String ZK_LEDGERS_ROOT_PATH = "zkLedgersRootPath";

    protected AbstractConfiguration() {
        super();
        // add configuration for system properties
        addConfiguration(new SystemConfiguration());
    }
View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

        // interpolation takes place across the entirety of the
        // composite configuration. Without doing this each
        // configuration object only interpolates variables defined
        // inside itself.
        final MyConfiguration conf = new MyConfiguration();
        conf.addConfiguration(new SystemConfiguration()
        {
            protected String interpolate(String o)
            {
                return conf.interpolate(o);
            }
View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

            {
                logger.debug( "Creating a default configuration - no configuration was provided" );
                configuration = new CombinedConfiguration();
            }

            configuration.addConfiguration( new SystemConfiguration() );

            this.configuration = configuration;
        }
        catch ( ConfigurationException e )
        {
View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

   * @throws ConfigurationException on configuration error
   */
  public static Module bindSettings(String propertiesFileKey, Class<?>... settingsArg)
      throws ConfigurationException {
    final CompositeConfiguration config = new CompositeConfiguration();
    config.addConfiguration(new SystemConfiguration());
    String propertyFile = config.getString(propertiesFileKey);
    if (propertyFile != null) {
      config.addConfiguration(new PropertiesConfiguration(propertyFile));
    }

View Full Code Here

Examples of org.apache.commons.configuration.SystemConfiguration

    return envConfig;
  }
 
  public Configuration getSystemConfiguration() {
    if (null == sysConfig)
      sysConfig = new SystemConfiguration();
    return sysConfig;
  }
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.