Package io.jmix.flowui.sys
Class JmixServiceInitListener
java.lang.Object
io.jmix.flowui.sys.JmixServiceInitListener
- All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener
,Serializable
,EventListener
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Component("flowui_JmixServiceInitListener")
public class JmixServiceInitListener
extends Object
implements com.vaadin.flow.server.VaadinServiceInitListener, org.springframework.context.ApplicationContextAware
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected AppCookies
protected CoreProperties
static final String
protected JmixModules
protected static final String
protected Resources
protected UiExceptionHandlers
protected ViewRegistry
-
Constructor Summary
ConstructorDescriptionJmixServiceInitListener
(ViewRegistry viewRegistry, UiExceptionHandlers uiExceptionHandlers, CoreProperties coreProperties, JmixModules modules, Resources resources) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendStyles
(org.jsoup.nodes.Element element, String path) protected org.jsoup.nodes.Element
createElement
(String tag, String content, String... attrs) protected String
getContent
(String path) protected AppCookies
protected void
initCookieLocale
(com.vaadin.flow.server.VaadinSession session) protected void
modifyIndexHtmlResponse
(com.vaadin.flow.server.communication.IndexHtmlResponse response) protected void
onSessionDestroyEvent
(com.vaadin.flow.server.SessionDestroyEvent event) protected void
onSessionInitEvent
(com.vaadin.flow.server.SessionInitEvent event) protected void
onUIInitEvent
(com.vaadin.flow.server.UIInitEvent uiInitEvent) protected void
void
serviceInit
(com.vaadin.flow.server.ServiceInitEvent event) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
IMPORT_STYLES_PROP
- See Also:
-
RESOURCE_PREFIX
- See Also:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
viewRegistry
-
uiExceptionHandlers
-
coreProperties
-
modules
-
resources
-
cookies
-
-
Constructor Details
-
JmixServiceInitListener
public JmixServiceInitListener(ViewRegistry viewRegistry, UiExceptionHandlers uiExceptionHandlers, CoreProperties coreProperties, JmixModules modules, Resources resources)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
serviceInit
public void serviceInit(com.vaadin.flow.server.ServiceInitEvent event) - Specified by:
serviceInit
in interfacecom.vaadin.flow.server.VaadinServiceInitListener
-
onUIInitEvent
protected void onUIInitEvent(com.vaadin.flow.server.UIInitEvent uiInitEvent) -
onSessionDestroyEvent
protected void onSessionDestroyEvent(com.vaadin.flow.server.SessionDestroyEvent event) -
onSessionInitEvent
protected void onSessionInitEvent(com.vaadin.flow.server.SessionInitEvent event) -
initCookieLocale
protected void initCookieLocale(com.vaadin.flow.server.VaadinSession session) -
registerInternalServiceError
protected void registerInternalServiceError() -
modifyIndexHtmlResponse
protected void modifyIndexHtmlResponse(com.vaadin.flow.server.communication.IndexHtmlResponse response) -
appendStyles
-
getContent
-
createElement
-
getCookies
-