public class HtmlBundleHandler extends Object implements com.vaadin.server.DependencyFilter, com.vaadin.server.VaadinServiceInitListener
| Modifier and Type | Field and Description |
|---|---|
static String |
HTML_BUNDLE_NAME
Configuration name for the HTML bundle to use instead of individual HTML
imports.
|
| Constructor and Description |
|---|
HtmlBundleHandler() |
| Modifier and Type | Method and Description |
|---|---|
List<com.vaadin.ui.Dependency> |
filter(List<com.vaadin.ui.Dependency> deps,
com.vaadin.server.DependencyFilter.FilterContext context)
Processes the given dependencies and replaces any suitable HTML import
with the used HTML bundle.
|
void |
serviceInit(com.vaadin.server.ServiceInitEvent event) |
public static final String HTML_BUNDLE_NAME
public void serviceInit(com.vaadin.server.ServiceInitEvent event)
serviceInit in interface com.vaadin.server.VaadinServiceInitListenerpublic List<com.vaadin.ui.Dependency> filter(List<com.vaadin.ui.Dependency> deps, com.vaadin.server.DependencyFilter.FilterContext context)
If no HTML bundle is defined, tries to auto detect one using
getHtmlBundleName(VaadinSession).
If no HTML bundle is used, returns the original dependencies.
filter in interface com.vaadin.server.DependencyFilterdeps - the dependencies to transformcontext - the context where filtering takes placeCopyright © 2018 Vaadin Ltd. All Rights Reserved.