com.vaadin.flow.server.startup.
Class AbstractRouteRegistryInitializer
All Implemented Interfaces:
Direct Known Subclasses:
Common validation methods for route registry initializer.
Since:
1.0
Author:
Vaadin Ltd
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
validatePwaClass
(VaadinContext context, Stream<Class<?>> routeClasses) Validate PWA annotations of the potential route classes stream, search for properly annotated PWA class and return it, or null if none existing.
validateRouteClasses
(VaadinContext context, Stream<Class<?>> routeClasses) Validate the potential route classes stream and return them as a set.
-
Constructor Details
-
AbstractRouteRegistryInitializer
public AbstractRouteRegistryInitializer()
-
-
Method Details
-
validateRouteClasses
protected Set<Class<? extends Component>> validateRouteClasses(VaadinContext context, Stream<Class<?>> routeClasses) Validate the potential route classes stream and return them as a set.
Parameters:
context
- a Vaadin contextrouteClasses
- potential route classesReturns:
a resulting set of the route component classes
-
validatePwaClass
Validate PWA annotations of the potential route classes stream, search for properly annotated PWA class and return it, or null if none existing.
Parameters:
context
- a Vaadin contextrouteClasses
- potential route classesReturns:
a PWA -annotated class, or null if none exist.
-