Example usage for org.apache.commons.configuration SystemConfiguration getKeys

List of usage examples for org.apache.commons.configuration SystemConfiguration getKeys

Introduction

In this page you can find the example usage for org.apache.commons.configuration SystemConfiguration getKeys.

Prototype

public Iterator getKeys(final String prefix) 

Source Link

Usage

From source file:org.msjs.config.MsjsConfiguration.java

private void loadSystemConfig() {
    SystemConfiguration sysConfig = new SystemConfiguration();
    Iterator<String> keys = sysConfig.getKeys("msjs");
    while (keys.hasNext()) {
        String key = keys.next();
        setProperty(key, sysConfig.getProperty(key));
    }//from   www  .j av a2  s  . c o m
}