Class DynamicThemeInitializer
java.lang.Object
com.flowingcode.vaadin.addons.demo.DynamicThemeInitializer
- All Implemented Interfaces:
VaadinServiceInitListener,Serializable,EventListener
Service initialization listener that automatically applies a dynamic theme.
If the dynamic theme feature is supported, this listener checks for the presence of a
/META-INF/dynamic-theme.properties file. If found, it reads the theme property
(e.g., theme=LUMO) and registers an IndexHtmlRequestListener to initialize the
theme for all requests.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DynamicThemeInitializer
public DynamicThemeInitializer()
-
-
Method Details
-
serviceInit
- Specified by:
serviceInitin interfaceVaadinServiceInitListener
-