Class RouteUnifyingServiceInitListener

java.lang.Object
com.vaadin.hilla.startup.RouteUnifyingServiceInitListener
All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener, Serializable, EventListener

@Component public class RouteUnifyingServiceInitListener extends Object implements com.vaadin.flow.server.VaadinServiceInitListener
Service init listener to add the RouteUnifyingIndexHtmlRequestListener to the service and to register client routes to ClientRouteRegistry.
See Also:
  • Constructor Details

    • RouteUnifyingServiceInitListener

      @Autowired public RouteUnifyingServiceInitListener(ClientRouteRegistry clientRouteRegistry, RouteUtil routeUtil, RouteUnifyingConfigurationProperties routeUnifyingConfigurationProperties, @Nullable com.vaadin.flow.server.auth.NavigationAccessControl accessControl, @Nullable com.vaadin.flow.server.auth.ViewAccessChecker viewAccessChecker)
      Creates a new instance of the listener.
      Parameters:
      clientRouteRegistry - the registry to add the client routes to
      routeUtil - the ClientRouteRegistry aware utility for checking if user is allowed to access a route
      routeUnifyingConfigurationProperties - the configuration properties instance
  • Method Details

    • serviceInit

      public void serviceInit(com.vaadin.flow.server.ServiceInitEvent event)
      Specified by:
      serviceInit in interface com.vaadin.flow.server.VaadinServiceInitListener