Package com.vaadin.flow.server.startup
Class AbstractRouteRegistryInitializer
java.lang.Object
com.vaadin.flow.server.startup.AbstractRouteRegistryInitializer
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RouteRegistryInitializer
Common validation methods for route registry initializer.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
-
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 classes- Returns:
- 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 classes- Returns:
- a PWA -annotated class, or null if none exist.
-