Class UnityFilePropertiesHelper

java.lang.Object
eu.unicore.util.configuration.PropertiesHelper
eu.unicore.util.configuration.FilePropertiesHelper
pl.edu.icm.unity.engine.api.config.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnityFilePropertiesHelper(String prefix, File file, Map<String,eu.unicore.util.configuration.PropertyMD> meta, org.apache.logging.log4j.Logger log)
     
    UnityFilePropertiesHelper(String prefix, String file, Map<String,eu.unicore.util.configuration.PropertyMD> meta, org.apache.logging.log4j.Logger log)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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.