Class ApplicationBoot<Config extends ApplicationConfiguration,​Context extends ApplicationContext<Config,​Context>>


  • public final class ApplicationBoot<Config extends ApplicationConfiguration,​Context extends ApplicationContext<Config,​Context>>
    extends Object
    This class is entry point of an application.

    It contains a shared instance which is automatically initialized when the first instance of class in created.

    Nobody is allowed to modify this instance.

    Created by tchemit on 26/01/2018.

    Author:
    Tony Chemit - dev@tchemit.fr
    • Field Detail

      • BOOT_LOG_PREFIX

        public static String BOOT_LOG_PREFIX
    • Method Detail

      • unlockBoot

        public static void unlockBoot()
      • handlingError

        public static void handlingError​(String message,
                                         Exception e)
      • handlingError

        public static void handlingError​(Exception e)
      • cleanMemory

        public static void cleanMemory()
      • newInstanceWithParams

        public static <O> O newInstanceWithParams​(Class<O> type,
                                                  Object... constructorParams)
      • startInThread

        public void startInThread()
      • start

        public void start()
      • restart

        public void restart()
      • shutdown

        public void shutdown()
      • addAction

        public void addAction​(String actionLabel,
                              Runnable action)
      • getContext

        public Context getContext()
      • getConfiguration

        public Config getConfiguration()
      • isClosed

        public boolean isClosed()
      • checkNotClosed

        public void checkNotClosed​(String stateName)
      • isClosing

        public boolean isClosing()
      • close

        public void close()