Class CCInitialize

java.lang.Object
org.eclnt.jsfserver.util.CCInitialize

public class CCInitialize extends Object
Central class for initializing the CC server environment.
  • Constructor Details

    • CCInitialize

      public CCInitialize()
  • Method Details

    • setInitWebSocketPolling

      public static void setInitWebSocketPolling(boolean value)
      You can define that the web socket polling is not initialized during the normal initializeCCEnvironment(ServletContext) method. There are some cases in which you do not require it, other cases in which you want to do the initialization later (e.g. Spring Boot: there the web socket management is not available during the intialization of the servlet context).
    • initializeCCEnvironment

      public static void initializeCCEnvironment(javax.servlet.ServletContext servletContext)
      Central method for starting the CaptainCasa runtime environment on server side. This method can be called multiple times - the runtime will keep in mind that it is initialized and will only execute the initialization with the first call of the method.
    • initializeCCEnvironment

      public static void initializeCCEnvironment(javax.servlet.ServletContext servletContext, boolean forceReset)
      Initialization with forcing an internal reset. Only call with "true" in dedicated scenarios. Example: Spring Boot with live reload. The classes are not reloaded but the application is restarted.
    • postInitializeWebSocketPolling

      public static void postInitializeWebSocketPolling(javax.servlet.ServletContext servletContext)
      When having set setInitWebSocketPolling(boolean) to false, then the websocket management is not initialized as part of initializeCCEnvironment(ServletContext). You can call the initialization later on by calling this method.
    • initApplicationStartUpClass

      public static void initApplicationStartUpClass(String name)
    • resetLayoutBuffers

      public static void resetLayoutBuffers()
      Reset these buffers that a page takes information from. This function is called by the Layout Editor when refreshing a dialog in the preview area.