com.vaadin.flow.server.PageConfigurator Java Examples
The following examples show how to use
com.vaadin.flow.server.PageConfigurator.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractRouteRegistryInitializer.java From flow with Apache License 2.0 | 6 votes |
private void validateRouteAliasImplementation(Class<?> route, RouteAlias alias, Class<?> implementation) { if (!UI.class.equals(alias.layout())) { if (PageConfigurator.class.isAssignableFrom(route)) { throw new InvalidRouteLayoutConfigurationException(String .format("%s needs to be the top parent layout '%s' not '%s'", implementation.getSimpleName(), RouteUtil.getTopParentLayout(route, alias.value()).getName(), route.getName())); } List<Class<? extends RouterLayout>> parentLayouts = RouteUtil .getParentLayouts(route, alias.value()); Class<? extends RouterLayout> topParentLayout = RouteUtil .getTopParentLayout(route, alias.value()); validateParentImplementation(parentLayouts, topParentLayout, implementation); } }