Class CacheConfigurationFactory


  • public final class CacheConfigurationFactory
    extends java.lang.Object
    The CacheConfigurationFactory builds CacheConfiguration instances from a Properties map.
    See Also:
    CacheConfiguration
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.saperion.cache.config.CacheConfiguration fromCacheProperties​(java.util.Properties properties)
      Builds a CacheConfiguration from the key-value-pairs in a Properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fromCacheProperties

        public static com.saperion.cache.config.CacheConfiguration fromCacheProperties​(java.util.Properties properties)
        Builds a CacheConfiguration from the key-value-pairs in a Properties. For every set-method defined in CacheConfiguration, a respective value in the Properties is searched. If found, the method is invoked with this value. The result is a set-up CacheConfiguration (with exactly the values from the properties!). No CacheConfiguration-attribute is mandatory - if one key-value-pair is "missing", no exception is thrown!
        Parameters:
        properties - the key-value-pairs to build a CacheConfiguration from. the keys must match exactly to the names of the CacheConfiguration.set*()-methods.
        Returns:
        a CacheConfiguration (more or less initialized, according to the properties)