Class UnityFilePropertiesHelper

  • All Implemented Interfaces:
    eu.unicore.util.configuration.PropertiesHelperAPI, eu.unicore.util.configuration.UpdateableConfiguration, Cloneable, Runnable
    Direct Known Subclasses:
    UnityServerConfiguration

    public class UnityFilePropertiesHelper
    extends eu.unicore.util.configuration.FilePropertiesHelper
    Extends FilePropertiesHelper with Unity specific methods. Currently only one - returning localized strings. Except of the base class the same as UnityPropertiesHelper.
    Author:
    K. Benedyczak
    • Field Summary

      • Fields inherited from class eu.unicore.util.configuration.FilePropertiesHelper

        file, lastAccess
      • Fields inherited from class eu.unicore.util.configuration.PropertiesHelper

        genericListeners, log, metadata, prefix, properties, propertyFocusedListeners, structuredPrefixes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      I18nString getLocalizedString​(MessageSource msg, String baseKey)  
      • Methods inherited from class eu.unicore.util.configuration.FilePropertiesHelper

        getFile, hasFileChanged, load, load, reload, reloadIfChanged, run
      • Methods inherited from class eu.unicore.util.configuration.PropertiesHelper

        addPropertyChangeListener, canHaveSubkeys, checkBounds, checkConstraints, checkConstraints, checkDeprecated, checkPropertyConstraints, checkStructuredListConstraints, clone, cloneTo, filterChanged, findUnknown, getBooleanValue, getClassValue, getDoubleValue, getDoubleValueNoCheck, getEnumValue, getFileValue, getFileValueAsString, getIntValue, getIntValueNoCheck, getKeyDescription, getListOfValues, getLocalizedValue, getLongValue, getLongValueNoCheck, getMetadata, getMetadataKey, getRawProperty, getSortedNumKeys, getSortedStringKeys, getStructuredListKeys, getSubkeyBooleanValue, getSubkeyEnumValue, getSubkeyIntValue, getSubkeyLongValue, getSubkeyValue, getValue, isSet, logValue, notifyAllWithKey, notifyFocusedListeners, notifyGenericListeners, removePropertyChangeListener, setProperties, setProperty
    • Constructor Detail

      • UnityFilePropertiesHelper

        public UnityFilePropertiesHelper​(String prefix,
                                         File file,
                                         Map<String,​eu.unicore.util.configuration.PropertyMD> meta,
                                         org.apache.logging.log4j.Logger log)
                                  throws IOException
        Throws:
        IOException
      • UnityFilePropertiesHelper

        public UnityFilePropertiesHelper​(String prefix,
                                         String file,
                                         Map<String,​eu.unicore.util.configuration.PropertyMD> meta,
                                         org.apache.logging.log4j.Logger log)
                                  throws IOException
        Throws:
        IOException
    • Method Detail

      • getLocalizedString

        public I18nString getLocalizedString​(MessageSource msg,
                                             String baseKey)
        Parameters:
        msg -
        baseKey - Property name (without the prefix).
        Returns:
        localized string of the given property. Default value is set to the regular value of the property. All sub values of the base key are used as localized values, assuming their subkey is equal to one of supported locales.