@@ -191,4 +191,10 @@ public interface KeyValueOperations extends DisposableBean {
|
|||||||
* @return mapping context in use.
|
* @return mapping context in use.
|
||||||
*/
|
*/
|
||||||
MappingContext<?, ?> getMappingContext();
|
MappingContext<?, ?> getMappingContext();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {@link KeyValueAdapter} in use.
|
||||||
|
* @since 3.2.4
|
||||||
|
*/
|
||||||
|
KeyValueAdapter getKeyValueAdapter();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -387,6 +387,11 @@ public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPub
|
|||||||
return this.mappingContext;
|
return this.mappingContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public KeyValueAdapter getKeyValueAdapter() {
|
||||||
|
return adapter;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroy() throws Exception {
|
public void destroy() throws Exception {
|
||||||
this.adapter.clear();
|
this.adapter.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user