类 SimpleValueWrapper
- java.lang.Object
- org.springframework.cache.support.SimpleValueWrapper
- 所有已实现的接口:
Cache.ValueWrapper
public class SimpleValueWrapper extends Object implements Cache.ValueWrapper
Straightforward implementation ofCache.ValueWrapper
, simply holding the value as given at construction and returning it fromget()
.- 从以下版本开始:
- 3.1
- 作者:
- Costin Leau
构造器详细资料
SimpleValueWrapper
public SimpleValueWrapper(Object value)
Create a new SimpleValueWrapper instance for exposing the given value.- 参数:
value
- the value to expose (may benull
)
方法详细资料
get
public Object get()
Simply returns the value as given at construction time.- 指定者:
get
在接口中Cache.ValueWrapper