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