forked from fanruan/design
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