Class SimpleValueWrapper
java.lang.Object
org.springframework.cache.support.SimpleValueWrapper
- All Implemented Interfaces:
Cache.ValueWrapper
Straightforward implementation of
Cache.ValueWrapper
,
simply holding the value as given at construction and returning it from get()
.- Since:
- 3.1
- Author:
- Costin Leau
-
Constructor Summary
ConstructorDescriptionSimpleValueWrapper
(Object value) Create a new SimpleValueWrapper instance for exposing the given value. -
Method Summary
-
Constructor Details
-
SimpleValueWrapper
Create a new SimpleValueWrapper instance for exposing the given value.- Parameters:
value
- the value to expose (may benull
)
-
-
Method Details
-
get
Simply returns the value as given at construction time.- Specified by:
get
in interfaceCache.ValueWrapper
-