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