|
|
|
@ -5,6 +5,8 @@ import com.fr.config.dao.DaoSelectorFactory;
|
|
|
|
|
import com.fr.event.Event; |
|
|
|
|
import com.fr.event.Listener; |
|
|
|
|
import com.fr.event.Null; |
|
|
|
|
import com.fr.stable.lifecycle.FineLifecycleFatalError; |
|
|
|
|
import com.fr.start.LifecycleFatalErrorHandler; |
|
|
|
|
import com.fr.start.event.LazyStartupEvent; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -20,7 +22,11 @@ public class BaseDBActivator4Designer extends BaseDBActivator {
|
|
|
|
|
listenEvent(LazyStartupEvent.INSTANCE, new Listener<Null>(Integer.MAX_VALUE) { |
|
|
|
|
@Override |
|
|
|
|
public void on(Event event, Null param) { |
|
|
|
|
BaseDBActivator4Designer.super.start(); |
|
|
|
|
try { |
|
|
|
|
BaseDBActivator4Designer.super.start(); |
|
|
|
|
} catch (FineLifecycleFatalError error) { |
|
|
|
|
LifecycleFatalErrorHandler.getInstance().handle(error); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|