Class AppInit


  • public final class AppInit
    extends java.lang.Object
    This class initializes all the application services
    Since:
    1.1
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLoadingFailureCause()
      Returns the cause of the startup failure
      static java.lang.String getLoadingFailureDetails()
      Returns details of the startup failure
      static void initServices​(java.lang.String strConfPath)
      Initializes all the application services (used for junit tests)
      static void initServices​(javax.servlet.ServletContext context, java.lang.String strConfPath, java.lang.String strRealPath)
      Initializes all the application services
      static boolean isWebappSuccessfullyLoaded()
      Tells if Lutece Startup was successful
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • initServices

        public static void initServices​(java.lang.String strConfPath)
        Initializes all the application services (used for junit tests)
        Parameters:
        strConfPath - The relative path to the config files
      • initServices

        public static void initServices​(javax.servlet.ServletContext context,
                                        java.lang.String strConfPath,
                                        java.lang.String strRealPath)
        Initializes all the application services
        Parameters:
        context - The servlet context
        strConfPath - The relative path to the config files
        strRealPath - The real path to the config files
      • isWebappSuccessfullyLoaded

        public static boolean isWebappSuccessfullyLoaded()
        Tells if Lutece Startup was successful
        Returns:
        True, if no error, otherwise false
      • getLoadingFailureCause

        public static java.lang.String getLoadingFailureCause()
        Returns the cause of the startup failure
        Returns:
        the cause of the startup failure
      • getLoadingFailureDetails

        public static java.lang.String getLoadingFailureDetails()
        Returns details of the startup failure
        Returns:
        details of the startup failure