public interface ConfigurationCache
| 限定符和类型 | 方法和说明 |
|---|---|
OperationConfiguration |
getCachedConfiguration(String namespace,
Class<? extends OperatorFactory> factoryType,
Class<?> targetType)
获取缓存的配置
|
default OperationConfiguration |
getOrCached(String namespace,
Class<? extends OperatorFactory> factoryType,
Class<?> targetType,
Supplier<OperationConfiguration> configurationFactory)
获取缓存,若不存则先获取配置并缓存
|
boolean |
setConfigurationCache(String namespace,
Class<? extends OperatorFactory> factoryType,
Class<?> targetType,
OperationConfiguration configuration)
若缓存不存在,则将配置添加至缓存
|
boolean setConfigurationCache(String namespace, Class<? extends OperatorFactory> factoryType, Class<?> targetType, OperationConfiguration configuration)
namespace - 命名空间factoryType - 操作者工厂类型targetType - 解析对象类型configuration - 缓存配置OperationConfiguration getCachedConfiguration(String namespace, Class<? extends OperatorFactory> factoryType, Class<?> targetType)
namespace - 命名空间factoryType - 操作者工厂类型targetType - 解析对象类型default OperationConfiguration getOrCached(String namespace, Class<? extends OperatorFactory> factoryType, Class<?> targetType, Supplier<OperationConfiguration> configurationFactory)
namespace - 命名空间factoryType - 操作者工厂类型targetType - 解析对象类型configurationFactory - 配置的获取方法Copyright © 2022. All rights reserved.