com.vaadin.flow.server.startup.

Class AbstractRouteRegistryInitializer

java.lang.Object
com.vaadin.flow.server.startup.AbstractRouteRegistryInitializer

All Implemented Interfaces:

Serializable

Direct Known Subclasses:

RouteRegistryInitializer

public abstract class AbstractRouteRegistryInitializer extends Object implements Serializable

Common validation methods for route registry initializer.

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • 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 context

      routeClasses - potential route classes

      Returns:

      a resulting set of the route component classes

    • validatePwaClass

      protected 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.

      Parameters:

      context - a Vaadin context

      routeClasses - potential route classes

      Returns:

      a PWA -annotated class, or null if none exist.