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 SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected AppCookiesprotected CorePropertiesstatic final Stringprotected JmixModulesprotected static final Stringprotected Resourcesprotected UiExceptionHandlersprotected ViewRegistry
- 
Constructor SummaryConstructorsConstructorDescriptionJmixServiceInitListener(ViewRegistry viewRegistry, UiExceptionHandlers uiExceptionHandlers, CoreProperties coreProperties, JmixModules modules, Resources resources) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappendStyles(org.jsoup.nodes.Element element, String path) protected org.jsoup.nodes.ElementcreateElement(String tag, String content, String... attrs) protected StringgetContent(String path) protected AppCookiesprotected voidinitCookieLocale(com.vaadin.flow.server.VaadinSession session) protected voidmodifyIndexHtmlResponse(com.vaadin.flow.server.communication.IndexHtmlResponse response) protected voidonSessionDestroyEvent(com.vaadin.flow.server.SessionDestroyEvent event) protected voidonSessionInitEvent(com.vaadin.flow.server.SessionInitEvent event) protected voidonUIInitEvent(com.vaadin.flow.server.UIInitEvent uiInitEvent) protected voidvoidserviceInit(com.vaadin.flow.server.ServiceInitEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) 
- 
Field Details- 
IMPORT_STYLES_PROP- See Also:
 
- 
RESOURCE_PREFIX- See Also:
 
- 
applicationContextprotected org.springframework.context.ApplicationContext applicationContext
- 
viewRegistry
- 
uiExceptionHandlers
- 
coreProperties
- 
modules
- 
resources
- 
cookies
 
- 
- 
Constructor Details- 
JmixServiceInitListenerpublic JmixServiceInitListener(ViewRegistry viewRegistry, UiExceptionHandlers uiExceptionHandlers, CoreProperties coreProperties, JmixModules modules, Resources resources) 
 
- 
- 
Method Details- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Throws:
- org.springframework.beans.BeansException
 
- 
serviceInitpublic void serviceInit(com.vaadin.flow.server.ServiceInitEvent event) - Specified by:
- serviceInitin interface- com.vaadin.flow.server.VaadinServiceInitListener
 
- 
onUIInitEventprotected void onUIInitEvent(com.vaadin.flow.server.UIInitEvent uiInitEvent) 
- 
onSessionDestroyEventprotected void onSessionDestroyEvent(com.vaadin.flow.server.SessionDestroyEvent event) 
- 
onSessionInitEventprotected void onSessionInitEvent(com.vaadin.flow.server.SessionInitEvent event) 
- 
initCookieLocaleprotected void initCookieLocale(com.vaadin.flow.server.VaadinSession session) 
- 
registerInternalServiceErrorprotected void registerInternalServiceError()
- 
modifyIndexHtmlResponseprotected void modifyIndexHtmlResponse(com.vaadin.flow.server.communication.IndexHtmlResponse response) 
- 
appendStyles
- 
getContent
- 
createElement
- 
getCookies
 
-