Class QuarkusTestLookupInitializer

java.lang.Object
com.vaadin.flow.di.LookupInitializer
com.vaadin.browserless.quarkus.QuarkusTestLookupInitializer
All Implemented Interfaces:
AbstractLookupInitializer

public class QuarkusTestLookupInitializer extends LookupInitializer
An extension of LookupInitializer that provides services for Quarkus testing integration. Currently, provides integration with Quarkus security. For internal use only.
  • Constructor Details

    • QuarkusTestLookupInitializer

      public QuarkusTestLookupInitializer()
  • Method Details

    • initialize

      public void initialize(VaadinContext context, Map<Class<?>,Collection<Class<?>>> services, VaadinApplicationInitializationBootstrap bootstrap) throws jakarta.servlet.ServletException
      Description copied from interface: AbstractLookupInitializer
      Creates a new Lookup instance, initializes it and passes it to the provided bootstrap.

      The method should creates a new initialized Lookup instance. In some cases it's not possible to create the instance right away when the method is called. To be able to support this usecase the method contract doesn't require to return the Lookup instance. Instead the created instance should be passed to the provided bootstrap consumer once the instance is created and completely initialized. The bootstrap will start the application initialization which otherwise is postponed until a Lookup becomes available.

      The implementation must use the provided bootstrap to pass the Lookup instance otherwise the web application based on this LookupInitializer will never be bootstrapped.

      The provided services map contains service implementations found in application classpath using @HandlesTypes annotation declared for LookupServletContainerInitializer.

      Specified by:
      initialize in interface AbstractLookupInitializer
      Overrides:
      initialize in class LookupInitializer
      Parameters:
      context - a Vaadin context to run initialization for
      services - the map of internal services with their implementations found in the application classpath
      bootstrap - the web application bootstrap
      Throws:
      jakarta.servlet.ServletException - if initialization failed