protected void parseConfigParameters(Properties prop){
  if (prop == null)   return;
  Enumeration<?> e=prop.propertyNames();
  while (e.hasMoreElements()) {
    String key=(String)e.nextElement();
    String configValue=null;
    int lastPeriod=key.lastIndexOf(".");
    String moduleName=key.substring(0,lastPeriod);
    String configKey=key.substring(lastPeriod + 1);
    String systemKey=System.getProperty(key);
    if (systemKey != null) {
      configValue=systemKey;
    }
 else {
      configValue=prop.getProperty(key);
    }
    IFloodlightModule mod=moduleNameMap.get(moduleName);
    if (mod == null) {
      logger.debug("Module {} not found or loaded. " + "Not adding configuration option {} = {}",new Object[]{moduleName,configKey,configValue});
    }
 else {
      logger.debug("Adding configuration option {} = {} for module {}",new Object[]{configKey,configValue,moduleName});
      floodlightModuleContext.addConfigParam(mod,configKey,configValue);
    }
  }
}

protected void parseConfigParameters ( Properties prop ) { if ( prop == null ) return ; Enumeration < ? > e = prop . propertyNames ( ) ; while ( e . hasMoreElements ( ) ) { String key = ( String ) e . nextElement ( ) ; String configValue = null ; int lastPeriod = key . lastIndexOf ( "." ) ; String moduleName = key . substring ( 0 , lastPeriod ) ; String configKey = key . substring ( lastPeriod + 1 ) ; String systemKey = System . getProperty ( key ) ; if ( systemKey != null ) { configValue = systemKey ; } else { configValue = prop . getProperty ( key ) ; } IFloodlightModule mod = moduleNameMap . get ( moduleName ) ; if ( mod == null ) { logger . debug ( "Module {} not found or loaded. " + "Not adding configuration option {} = {}" , new Object [ ] { moduleName , configKey , configValue } ) ; } else { logger . debug ( "Adding configuration option {} = {} for module {}" , new Object [ ] { configKey , configValue , moduleName } ) ; floodlightModuleContext . addConfigParam ( mod , configKey , configValue ) ; } } }
parses configuration parameters for each module
