Package org.aoju.bus.cache.support
Class SpelCalculator
java.lang.Object
org.aoju.bus.cache.support.SpelCalculator
Spel表达式的计算功能(@Cached内的condition、@CacheKey内的spel只是作为一个增值服务, 并不作为核心功能, 只是作为key拼装的一个亮点, 并不是必须功能)
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectcalcSpelValueWithContext(String spel, String[] argNames, Object[] argValues, Object defaultValue) static ObjectcalcSpelWithNoContext(String spel, Object defaultValue)
-
Constructor Details
-
SpelCalculator
public SpelCalculator()
-
-
Method Details
-
calcSpelValueWithContext
-
calcSpelWithNoContext
-