Package org.eclnt.jsfserver.util
Class CCInitialize
java.lang.Object
org.eclnt.jsfserver.util.CCInitialize
Central class for initializing the CC server environment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidinitializeCCEnvironment(jakarta.servlet.ServletContext servletContext) Central method for starting the CaptainCasa runtime environment on server side.static voidinitializeCCEnvironment(jakarta.servlet.ServletContext servletContext, boolean forceReset) Initialization with forcing an internal reset.static voidpostInitializeWebSocketPolling(jakarta.servlet.ServletContext servletContext) When having setsetInitWebSocketPolling(boolean)to false, then the websocket management is not initialized as part ofinitializeCCEnvironment(ServletContext).static voidReset these buffers that a page takes information from.static voidsetInitWebSocketPolling(boolean value) You can define that the web socket polling is not initialized during the normalinitializeCCEnvironment(ServletContext)method.
-
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 normalinitializeCCEnvironment(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(jakarta.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(jakarta.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(jakarta.servlet.ServletContext servletContext) When having setsetInitWebSocketPolling(boolean)to false, then the websocket management is not initialized as part ofinitializeCCEnvironment(ServletContext). You can call the initialization later on by calling this method. -
initApplicationStartUpClass
-
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.
-