Class CacheConfigurationFactory

java.lang.Object
com.saperion.ngc.cache.CacheConfigurationFactory

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

    • fromCacheProperties

      public static com.saperion.cache.config.CacheConfiguration fromCacheProperties(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)