Hoky
3 years ago
5 changed files with 70 additions and 45 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