Class MCRConfigurationBase

java.lang.Object
org.mycore.common.config.MCRConfigurationBase

public final class MCRConfigurationBase extends Object
  • Method Details

    • getSystemLastModified

      public static long getSystemLastModified()
      returns the last point in time when the MyCoRe system was last modified. This method can help you to validate caches not under your controll, e.g. client caches.
      See Also:
    • systemModified

      public static void systemModified()
      signalize that the system state has changed. Call this method when ever you changed the persistency layer.
    • resolveProperties

      protected static void resolveProperties()
      Substitute all %properties%.
    • getResolvedProperties

      protected static MCRProperties getResolvedProperties()
    • getBaseProperties

      protected static MCRProperties getBaseProperties()
    • getDeprecatedProperties

      protected static MCRProperties getDeprecatedProperties()
    • getString

      public static Optional<String> getString(String name)
      Returns the configuration property with the specified name as a String.
      Parameters:
      name - the non-null and non-empty name of the configuration property
      Returns:
      the value of the configuration property as a String
      Throws:
      MCRConfigurationException - if the properties are not initialized
    • initialize

      public static void initialize(Map<String,String> deprecated, Map<String,String> props, boolean clear)