|
|
|
@ -4,6 +4,7 @@ import com.fr.config.dao.DaoSelectorFactory;
|
|
|
|
|
import com.fr.config.dao.swicter.DaoSwitcher; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.event.Event; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
|
import com.fr.event.Listener; |
|
|
|
|
import com.fr.event.Null; |
|
|
|
|
import com.fr.exit.ConfigToPropMigrator; |
|
|
|
@ -25,6 +26,7 @@ public class TenantDBAdapter4Designer extends TenantDBAdapter {
|
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null param) { |
|
|
|
|
TenantDBAdapter4Designer.super.start(); |
|
|
|
|
afterStart(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -32,7 +34,7 @@ public class TenantDBAdapter4Designer extends TenantDBAdapter {
|
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null param) { |
|
|
|
|
if (DaoSelectorFactory.getDaoSelector().useCacheDao()) { |
|
|
|
|
beforeEmbedServerStart(); |
|
|
|
|
EventDispatcher.fire(LazyStartupEvent.INSTANCE); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
@ -42,7 +44,7 @@ public class TenantDBAdapter4Designer extends TenantDBAdapter {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void beforeEmbedServerStart() { |
|
|
|
|
private void afterStart() { |
|
|
|
|
DesignerEnvManager.getEnvManager().setPropertiesUsable(false); |
|
|
|
|
DaoSwitcher.executeSwitch(); |
|
|
|
|
ConfigToPropMigrator.getInstance().deletePropertiesCache(); |
|
|
|
|