diff --git a/jetcache-core/src/main/java/com/alicp/jetcache/template/NotifyMonitorInstaller.java b/jetcache-core/src/main/java/com/alicp/jetcache/template/NotifyMonitorInstaller.java index 23eebc6c..abe42ee5 100644 --- a/jetcache-core/src/main/java/com/alicp/jetcache/template/NotifyMonitorInstaller.java +++ b/jetcache-core/src/main/java/com/alicp/jetcache/template/NotifyMonitorInstaller.java @@ -49,7 +49,13 @@ public void addMonitors(CacheManager cacheManager, Cache cache, QuickConfig quic } } - CacheMonitor monitor = new CacheNotifyMonitor(cacheManager, area, quickConfig.getName()); + CacheMonitor monitor = createMonitor(cacheManager, quickConfig, area); cache.config().getMonitors().add(monitor); } + + protected CacheMonitor createMonitor(CacheManager cacheManager, QuickConfig quickConfig, String area) { + return new CacheNotifyMonitor(cacheManager, area, quickConfig.getName()); + } + + }