Commit b1002a98 authored by 吴晟's avatar 吴晟
Browse files

Adjust startup sequence.

parent 1cb05658
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -58,9 +58,9 @@ public class BootstrapFlow {
                }
            }
            logger.info("start the provider {} in {} module.", provider.name(), provider.getModuleName());
            provider.start(configuration.getModuleConfiguration(provider.getModuleName()).getProviderConfiguration(provider.name()));

            provider.requiredCheck(provider.getModule().services());

            provider.start(configuration.getModuleConfiguration(provider.getModuleName()).getProviderConfiguration(provider.name()));
        }
    }

+1 −1
Original line number Diff line number Diff line
@@ -34,10 +34,10 @@ public class ModuleAProvider extends ModuleProvider {

    @Override public void prepare(Properties config) throws ServiceNotProvidedException {
        this.registerServiceImplementation(BaseModuleA.ServiceABusiness1.class, new ModuleABusiness1Impl());
        this.registerServiceImplementation(BaseModuleA.ServiceABusiness2.class, new ModuleABusiness2Impl());
    }

    @Override public void start(Properties config) throws ServiceNotProvidedException {
        this.registerServiceImplementation(BaseModuleA.ServiceABusiness2.class, new ModuleABusiness2Impl());
    }

    @Override public void notifyAfterCompleted() throws ServiceNotProvidedException {
+1 −1
Original line number Diff line number Diff line
@@ -34,10 +34,10 @@ public class ModuleBProvider extends ModuleProvider {

    @Override public void prepare(Properties config) throws ServiceNotProvidedException {
        this.registerServiceImplementation(BaseModuleB.ServiceBBusiness1.class, new ModuleBBusiness1Impl());
        this.registerServiceImplementation(BaseModuleB.ServiceBBusiness2.class, new ModuleBBusiness2Impl());
    }

    @Override public void start(Properties config) throws ServiceNotProvidedException {
        this.registerServiceImplementation(BaseModuleB.ServiceBBusiness2.class, new ModuleBBusiness2Impl());
    }

    @Override public void notifyAfterCompleted() throws ServiceNotProvidedException {