|
@@ -64,8 +64,9 @@ public class EhCachePlugin implements IPlugin {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void createCacheManager() {
|
|
private void createCacheManager() {
|
|
|
- if (cacheManager != null)
|
|
|
|
|
|
|
+ if (cacheManager != null) {
|
|
|
return ;
|
|
return ;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (configurationFileName != null) {
|
|
if (configurationFileName != null) {
|
|
|
cacheManager = CacheManager.create(configurationFileName);
|
|
cacheManager = CacheManager.create(configurationFileName);
|
|
@@ -92,6 +93,7 @@ public class EhCachePlugin implements IPlugin {
|
|
|
|
|
|
|
|
public boolean stop() {
|
|
public boolean stop() {
|
|
|
cacheManager.shutdown();
|
|
cacheManager.shutdown();
|
|
|
|
|
+ cacheManager = null;
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|