Class ReadThroughCacheFactory

    • Constructor Detail

      • ReadThroughCacheFactory

        public ReadThroughCacheFactory()
    • Method Detail

      • createDecoratedEhcache

        public Ehcache createDecoratedEhcache​(Ehcache cache,
                                              java.util.Properties properties)
        Description copied from class: CacheDecoratorFactory
        Creates a decorated Ehcache using the properties specified for configuring the decorator.

        If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.

        Specified by:
        createDecoratedEhcache in class CacheDecoratorFactory
        Parameters:
        cache - a reference to the owning cache
        properties - implementation specific properties configured as delimiter separated name value pairs in ehcache.xml
        Returns:
        a decorated Ehcache
      • createDefaultDecoratedEhcache

        public Ehcache createDefaultDecoratedEhcache​(Ehcache cache,
                                                     java.util.Properties properties)
        Description copied from class: CacheDecoratorFactory
        This method is called when the factory is specified for the defaultCache in the config. Create the decorated Ehcache using the properties specified.

        If the returned decorated cache has the same name as the underlying cache, then the original cache will be replaced by this new decorated cache in the CacheManager.

        Specified by:
        createDefaultDecoratedEhcache in class CacheDecoratorFactory
        Parameters:
        cache - a reference to the owning cache
        properties - implementation specific properties configured as delimiter separated name value pairs in ehcache.xml
        Returns:
        a decorated Ehcache