class WirisPlugin::FileConfigurationUpdater

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/com/wiris/plugin/impl/FileConfigurationUpdater.rb, line 12
def initialize()
    super()
end

Public Instance Methods

init(obj) click to toggle source
# File lib/com/wiris/plugin/impl/FileConfigurationUpdater.rb, line 15
def init(obj)
end
updateConfiguration(ref_configuration) click to toggle source
# File lib/com/wiris/plugin/impl/FileConfigurationUpdater.rb, line 17
def updateConfiguration(ref_configuration)
    configuration = ref_configuration
    confDir = PropertiesTools::getProperty(configuration,ConfigurationKeys::CONFIGURATION_PATH)
    if confDir != nil
        confFile = confDir + "/configuration.ini"
        s = Storage::newStorage(confFile)
        if s::exists()
            defaultIniFile = IniFile::newIniFileFromFilename(confFile)
            h = defaultIniFile::getProperties()
            iter = h::keys()
            while iter::hasNext()
                key = iter::next()
                PropertiesTools::setProperty(configuration,key,h::get(key))
            end
        end
    end
end