Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.cache.support
Class SimpleValueWrapper

    java.lang.Object
      org.springframework.cache.support.SimpleValueWrapper

All Implemented Interfaces:
  Cache.ValueWrapper

    public class SimpleValueWrapper

extends java.lang.Object
implements 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
`SimpleValueWrapper(java.lang.Object value)` Create a new SimpleValueWrapper instance for exposing the given value.

Method Summary
`java.lang.Object` | `get()` Simply returns the value as given at construction time.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SimpleValueWrapper

    public SimpleValueWrapper(java.lang.Object value)

  Create a new SimpleValueWrapper instance for exposing the given value.

  Parameters:
    `value` - the value to expose (may be `null`)

Method Detail

### get

    public java.lang.Object get()

  Simply returns the value as given at construction time.

  Specified by:
    `get` in interface `Cache.ValueWrapper`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD