Class CacheBuilder

java.lang.Object
org.apache.ibatis.mapping.CacheBuilder

public class CacheBuilder extends Object
  • Field Details

    • id

      private final String id
    • implementation

      private Class<? extends Cache> implementation
    • decorators

      private final List<Class<? extends Cache>> decorators
    • size

      private Integer size
    • clearInterval

      private Long clearInterval
    • readWrite

      private boolean readWrite
    • properties

      private Properties properties
    • blocking

      private boolean blocking
  • Constructor Details

    • CacheBuilder

      public CacheBuilder(String id)
  • Method Details

    • implementation

      public CacheBuilder implementation(Class<? extends Cache> implementation)
    • addDecorator

      public CacheBuilder addDecorator(Class<? extends Cache> decorator)
    • size

      public CacheBuilder size(Integer size)
    • clearInterval

      public CacheBuilder clearInterval(Long clearInterval)
    • readWrite

      public CacheBuilder readWrite(boolean readWrite)
    • blocking

      public CacheBuilder blocking(boolean blocking)
    • properties

      public CacheBuilder properties(Properties properties)
    • build

      public Cache build()
    • setDefaultImplementations

      private void setDefaultImplementations()
    • setStandardDecorators

      private Cache setStandardDecorators(Cache cache)
    • setCacheProperties

      private void setCacheProperties(Cache cache)
    • newBaseCacheInstance

      private Cache newBaseCacheInstance(Class<? extends Cache> cacheClass, String id)
    • getBaseCacheConstructor

      private Constructor<? extends Cache> getBaseCacheConstructor(Class<? extends Cache> cacheClass)
    • newCacheDecoratorInstance

      private Cache newCacheDecoratorInstance(Class<? extends Cache> cacheClass, Cache base)
    • getCacheDecoratorConstructor

      private Constructor<? extends Cache> getCacheDecoratorConstructor(Class<? extends Cache> cacheClass)