Package org.apache.ibatis.mapping
Class CacheBuilder
java.lang.Object
org.apache.ibatis.mapping.CacheBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Longprivate final Stringprivate Propertiesprivate booleanprivate Integer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDecorator(Class<? extends Cache> decorator) blocking(boolean blocking) build()clearInterval(Long clearInterval) private Constructor<? extends Cache> getBaseCacheConstructor(Class<? extends Cache> cacheClass) private Constructor<? extends Cache> getCacheDecoratorConstructor(Class<? extends Cache> cacheClass) implementation(Class<? extends Cache> implementation) private CachenewBaseCacheInstance(Class<? extends Cache> cacheClass, String id) private CachenewCacheDecoratorInstance(Class<? extends Cache> cacheClass, Cache base) properties(Properties properties) readWrite(boolean readWrite) private voidsetCacheProperties(Cache cache) private voidprivate CachesetStandardDecorators(Cache cache)
-
Field Details
-
id
-
implementation
-
decorators
-
size
-
clearInterval
-
readWrite
private boolean readWrite -
properties
-
blocking
private boolean blocking
-
-
Constructor Details
-
CacheBuilder
-
-
Method Details
-
implementation
-
addDecorator
-
size
-
clearInterval
-
readWrite
-
blocking
-
properties
-
build
-
setDefaultImplementations
private void setDefaultImplementations() -
setStandardDecorators
-
setCacheProperties
-
newBaseCacheInstance
-
getBaseCacheConstructor
-
newCacheDecoratorInstance
-
getCacheDecoratorConstructor
private Constructor<? extends Cache> getCacheDecoratorConstructor(Class<? extends Cache> cacheClass)
-