public interface NavigationTargetFilter extends Serializable
Listener instances are by discovered and instantiated using
ServiceLoader. This means that all implementations must have a
zero-argument constructor and the fully qualified name of the implementation
class must be listed on a separate line in a
META-INF/services/com.vaadin.flow.server.startup.NavigationTargetFilter file
present in the jar file containing the implementation class.
| Modifier and Type | Method and Description |
|---|---|
boolean |
testErrorNavigationTarget(Class<?> errorNavigationTarget)
Tests whether the given error navigation target class should be included.
|
boolean |
testNavigationTarget(Class<? extends Component> navigationTarget)
Tests whether the given navigation target class should be included.
|
boolean testNavigationTarget(Class<? extends Component> navigationTarget)
navigationTarget - the navigation target class to testtrue to include the navigation target,
false to discard itboolean testErrorNavigationTarget(Class<?> errorNavigationTarget)
errorNavigationTarget - the error navigation target class to testtrue to include the error navigation target,
false to discard itCopyright © 2025. All rights reserved.