Class DynamicThemeInitializer

java.lang.Object
com.flowingcode.vaadin.addons.demo.DynamicThemeInitializer
All Implemented Interfaces:
VaadinServiceInitListener, Serializable, EventListener

public class DynamicThemeInitializer extends Object implements VaadinServiceInitListener
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: