public static interface SpringViewNavigator.Builder extends ViewNavigator.NavigatorBuilder<SpringViewNavigator.Builder>
SpringViewNavigator instances| Modifier and Type | Method and Description |
|---|---|
SpringViewNavigator.Builder |
accessDeniedView(Class<? extends com.vaadin.navigator.View> viewClass)
Registers a view class for the view to show when a
ViewAccessControl or a
ViewInstanceAccessControl denies access to a view. |
SpringViewNavigator |
build()
Build the navigator instance
|
SpringViewNavigator.Builder |
errorView(Class<? extends com.vaadin.navigator.View> viewClass)
Registers a view class for the view to show when no other view matches the navigation state.
|
addProvider, authenticationEnabled, defaultViewName, defaultViewNavigationStrategy, defaultViewWindowConfigurator, errorView, errorViewProvider, maxNavigationHistorySize, navigateToDefaultViewWhenViewNotAvailable, viewClassProvider, withViewChangeListenerSpringViewNavigator.Builder errorView(Class<? extends com.vaadin.navigator.View> viewClass)
A bean of the given type is fetched on demand from the application context to be used as the error view. As a
fallback mechanism for backwards compatibility, Class.newInstance() is used if no such bean is found.
Note that an error view bean must be UI or prototype scoped.
viewClass - The View class whose instance should be used as the error viewSpringViewNavigator.Builder accessDeniedView(Class<? extends com.vaadin.navigator.View> viewClass)
ViewAccessControl or a
ViewInstanceAccessControl denies access to a view.
A bean of the given type is fetched on demand from the application context to be used as the access denied
view. As a fallback mechanism for backwards compatibility, Class.newInstance() is used if no such
bean is found.
Note that an access denied view bean must be UI or prototype scoped.
viewClass - The View class whose instance should be used as the access denied viewSpringViewNavigator build()
Copyright © 2019 The Holon Platform. All rights reserved.