forked from fanruan/design
Browse Source
Merge in DESIGN/design from ~HADES/design:feature/x to feature/x * commit 'a322a11f0f578d02acf438a9e10843cd7efdcc42': KERNEL-10324 fix 大小写 KERNEL-10324 DB模块 优化feature/x
Hades
3 years ago
4 changed files with 59 additions and 37 deletions
@ -0,0 +1,32 @@
|
||||
package com.fr.start.module.optimized; |
||||
|
||||
import com.fr.config.dao.DaoSelectorFactory; |
||||
import com.fr.event.Event; |
||||
import com.fr.event.Listener; |
||||
import com.fr.event.Null; |
||||
import com.fr.report.module.ReportBaseActivator; |
||||
import com.fr.start.event.LazyStartupEvent; |
||||
|
||||
/** |
||||
* @author hades |
||||
* @version 11.0 |
||||
* Created by hades on 2022/3/16 |
||||
*/ |
||||
public class ReportBaseActivator4Designer extends ReportBaseActivator { |
||||
|
||||
@Override |
||||
protected void vcsInit() { |
||||
if (DaoSelectorFactory.getDaoSelector().useCacheDao()) { |
||||
listenEvent(LazyStartupEvent.INSTANCE, new Listener<Null>() { |
||||
@Override |
||||
public void on(Event event, Null param) { |
||||
ReportBaseActivator4Designer.super.vcsInit(); |
||||
} |
||||
}); |
||||
} else { |
||||
super.vcsInit(); |
||||
} |
||||
|
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue