Beispiel #1
0
 public void fireApplicationStarted() {
   synchronized (this) {
     if (appStarted) {
       return;
     }
     appStarted = true;
   }
   try {
     persistence.loadPersistedComponents();
   } catch (RuntimeException | IOException e) {
     log.error("Failed to load persisted components", e);
   }
   // deploy a fake component that is marking the end of startup
   // XML components that needs to be deployed at the end need to put a
   // requirement
   // on this marker component
   deployFrameworkStartedComponent();
   notifyComponentsOnStarted();
   // print the startup message
   printStatusMessage();
 }