public class OperationConfigurationCache extends Object implements ConfigurationCache
ConfigurationCache的通用实现| 构造器和说明 |
|---|
OperationConfigurationCache() |
| 限定符和类型 | 方法和说明 |
|---|---|
OperationConfiguration |
getCachedConfiguration(String cacheName,
Class<?> targetType)
获取缓存的配置
|
OperationConfiguration |
getOrCached(String cacheName,
Class<?> targetType,
Function<Class<?>,OperationConfiguration> configurationFactory)
获取缓存,若不存则先获取配置并缓存
|
void |
setConfigurationCache(String cacheName,
Class<?> targetType,
OperationConfiguration configuration)
若缓存不存在,则将配置添加至缓存
|
public void setConfigurationCache(String cacheName, Class<?> targetType, OperationConfiguration configuration)
ConfigurationCachesetConfigurationCache 在接口中 ConfigurationCachecacheName - 缓存名称targetType - 解析对象类型configuration - 缓存配置@Nullable public OperationConfiguration getCachedConfiguration(String cacheName, Class<?> targetType)
ConfigurationCachegetCachedConfiguration 在接口中 ConfigurationCachecacheName - 缓存名称targetType - 解析对象类型public OperationConfiguration getOrCached(String cacheName, Class<?> targetType, Function<Class<?>,OperationConfiguration> configurationFactory)
ConfigurationCachegetOrCached 在接口中 ConfigurationCachecacheName - 缓存名称targetType - 解析对象类型configurationFactory - 配置的获取方法Copyright © 2022. All rights reserved.