Examples of PropertiesConfiguration


Examples of org.apache.commons.configuration.PropertiesConfiguration

        bind(CheckpointingFramework.class).to(NoOpCheckpointingFramework.class);
    }

    private void loadProperties(Binder binder) {
        try {
            config = new PropertiesConfiguration();
            config.load(coreConfigFileInputStream);

            // TODO - validate properties.

            /* Make all properties injectable. Do we need this? */
 
View Full Code Here

Examples of org.apache.commons.configuration2.PropertiesConfiguration

                "Wrong result for existing listener",
                src.removeEventListener(ConfigurationEvent.ANY_HIERARCHICAL, l2));
        assertFalse(
                "Wrong result for non-existing listener",
                src.removeEventListener(ConfigurationEvent.ANY_HIERARCHICAL, l2));
        PropertiesConfiguration config = builder.getConfiguration();
        Collection<EventListener<? super ConfigurationEvent>> listeners =
                config.getEventListeners(ConfigurationEvent.ANY_HIERARCHICAL);
        assertTrue("Registered listener not found", listeners.contains(l1));
        assertFalse("Removed listener still found", listeners.contains(l2));
    }
View Full Code Here

Examples of org.apache.ftpserver.config.PropertiesConfiguration

    }

    protected FtpServer createFtpServer() throws Exception {
        // get the configuration object
        Properties properties = createFtpServerProperties();
        Configuration config = new PropertiesConfiguration(properties);

        // create servce context
        FtpServerContext ftpConfig = new ConfigurableFtpServerContext(config);

        // create the server object and start it
View Full Code Here

Examples of org.apache.stratum.configuration.PropertiesConfiguration

        {
            Object component = Class.forName(className).newInstance();

            // configure component using the given config file
            ((Configurable) component)
                .configure(new PropertiesConfiguration(configFile));

            // initialize component
            ((Initializable) component).initialize();

            if (log.isDebugEnabled())
View Full Code Here

Examples of primarydatamanager.mirrorupdater.config.PropertiesConfiguration

    System.setProperty("http.agent", PROGRAM_TITLE);

    // Start the update
   
    try {
      Configuration config = new PropertiesConfiguration(configFileName);
      MirrorUpdater updater = new MirrorUpdater(config);
      updater.updateMirror();
    }
    catch (UpdateException exc) {
      exc.printStackTrace();
View Full Code Here

Examples of tifauv.jplop.core.config.PropertiesConfiguration

  private StorageManager m_storage;
 

  // CONSTRUCTORS \\
  public BackendImpl() {
    m_config = new PropertiesConfiguration();
    m_history = new History();
    m_users = new UserBase();
    m_storage = new StorageManagerImpl();
  }
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.