@Configuration @ConditionalOnClass(value=Navigator.class) @AutoConfigureBefore(value=com.vaadin.flow.spring.SpringBootAutoConfiguration.class) @AutoConfigureAfter(value=com.vaadin.flow.spring.VaadinScopesConfig.class) public class NavigatorAutoConfiguration extends Object
Navigator bean and register the default error
components for the UnauthorizedNavigationException and ForbiddenNavigationException navigation
exceptions.
The UI-scoped Navigator bean is registered only if there is not another Navigator type bean
registered in context.
The holon.vaadin.navigator.errors.enabled boolean configuration property can be used to disable the
default error components registration, setting its value to false.
Furthermore, this class sets up a servlet context initializer to pre-load the navigation target classes configurations.
| Constructor and Description |
|---|
NavigatorAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.boot.web.servlet.ServletContextInitializer |
navigatorNavigationTargetConfigurationServletContextInitializer() |
Copyright © 2020 The Holon Platform. All rights reserved.