This commit is contained in:
@@ -35,6 +35,9 @@ public class CacheMemorySource<V extends Object> extends AbstractService impleme
|
|||||||
private File home;
|
private File home;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
|
private JsonConvert defaultConvert;
|
||||||
|
|
||||||
|
@Resource(name = "$_convert")
|
||||||
private JsonConvert convert;
|
private JsonConvert convert;
|
||||||
|
|
||||||
private boolean needStore;
|
private boolean needStore;
|
||||||
@@ -73,6 +76,7 @@ public class CacheMemorySource<V extends Object> extends AbstractService impleme
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(AnyValue conf) {
|
public void init(AnyValue conf) {
|
||||||
|
if (this.convert == null) this.convert = this.defaultConvert;
|
||||||
final CacheMemorySource self = this;
|
final CacheMemorySource self = this;
|
||||||
AnyValue prop = conf == null ? null : conf.getAnyValue("property");
|
AnyValue prop = conf == null ? null : conf.getAnyValue("property");
|
||||||
if (prop != null) {
|
if (prop != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user