Uses of Interface
com.vaadin.browserless.internal.UIFactory
Packages that use UIFactory
Package
Description
-
Uses of UIFactory in com.vaadin.browserless
Methods in com.vaadin.browserless with parameters of type UIFactoryModifier and TypeMethodDescriptionBrowserlessApplicationContext.Builder.withUIFactory(UIFactory uiFactory) Sets the UI factory used when creating UI instances for this application's windows.SecuredBrowserlessApplicationContext.Builder.withUIFactory(UIFactory uiFactory) Forwards to the matching method on the underlyingBrowserlessApplicationContext.Builder.Method parameters in com.vaadin.browserless with type arguments of type UIFactoryModifier and TypeMethodDescriptionBrowserlessApplicationContext.Builder.withServletFactory(BiFunction<Routes, UIFactory, VaadinServlet> factory) Sets a custom servlet factory.SecuredBrowserlessApplicationContext.Builder.withServletFactory(BiFunction<Routes, UIFactory, VaadinServlet> factory) Forwards to the matching method on the underlyingBrowserlessApplicationContext.Builder. -
Uses of UIFactory in com.vaadin.browserless.internal
Methods in com.vaadin.browserless.internal with parameters of type UIFactoryModifier and TypeMethodDescriptionstatic voidMockVaadin.afterSessionClose(VaadinSession session, UIFactory uiFactory) Internal function, do not call directly.static voidMockVaadin.createUI(UIFactory uiFactory, VaadinSession session) Creates a UI with the given factory and attaches it to the given session, which must be the current one.static voidstatic voidstatic voidMockVaadin.setup(Routes routes, UIFactory uiFactory, Set<? extends Class<?>> lookupServices, BrowserlessConfiguration configuration) Mocks Vaadin for the current test method:static voidMockVaadin.setup(UIFactory uiFactory, VaadinServlet servlet) static voidMockVaadin.setup(UIFactory uiFactory, VaadinServlet servlet, Set<? extends Class<?>> lookupServices) static voidMockVaadin.setup(UIFactory uiFactory, VaadinServlet servlet, Set<? extends Class<?>> lookupServices, BrowserlessConfiguration configuration) Use this method when you need to provide a completely custom servlet (e.g.Constructors in com.vaadin.browserless.internal with parameters of type UIFactoryModifierConstructorDescriptionMockPage(UI ui, UIFactory uiFactory, VaadinSession session) Creates the page of the given UI. -
Uses of UIFactory in com.vaadin.browserless.mocks
Fields in com.vaadin.browserless.mocks declared as UIFactoryModifier and TypeFieldDescriptionfinal @NonNull UIFactoryMockSpringServlet.uiFactoryCreates the UI of the session that replaces a closed session of this servlet.Methods in com.vaadin.browserless.mocks that return UIFactoryModifier and TypeMethodDescriptionMockService.getUiFactory()Returns the factory creating theUIof the session that replaces a closed session of this service.MockVaadinServlet.getUiFactory()Returns the factory creating theUIof the session that replaces a closed session of this servlet.MockVaadinSession.getUiFactory()Returns the factory producing theUIof the session that replaces this one once it is closed.Constructors in com.vaadin.browserless.mocks with parameters of type UIFactoryModifierConstructorDescriptionMockService(VaadinServlet servlet, DeploymentConfiguration deploymentConfiguration, UIFactory uiFactory) Creates a service whose sessions produce UIs from the given factory.MockSpringServlet(@NonNull Routes routes, @NonNull org.springframework.context.ApplicationContext ctx, @NonNull UIFactory uiFactory) Creates the servlet.MockSpringServletService(@NonNull MockSpringServlet servlet, @NonNull DeploymentConfiguration deploymentConfiguration, @NonNull org.springframework.context.ApplicationContext ctx, @NonNull UIFactory uiFactory) Creates the service.MockSpringVaadinSession(@NonNull VaadinService service, @NonNull UIFactory uiFactory) Creates the session.MockVaadinServlet(Routes routes, UIFactory uiFactory) Creates a servlet serving the given routes, producing UIs from the given factory.MockVaadinSession(VaadinService service, UIFactory uiFactory) Creates a session for the given service. -
Uses of UIFactory in com.vaadin.browserless.quarkus.mocks
Fields in com.vaadin.browserless.quarkus.mocks declared as UIFactoryModifier and TypeFieldDescriptionprotected final UIFactoryMockQuarkusServlet.uiFactoryFactory used to build Flow UIs.Constructors in com.vaadin.browserless.quarkus.mocks with parameters of type UIFactoryModifierConstructorDescriptionMockQuarkusServlet(Routes routes, jakarta.enterprise.inject.spi.BeanManager beanManager, @NonNull UIFactory uiFactory) Creates aQuarkusVaadinServletfor testing environment.MockQuarkusServletService(QuarkusVaadinServlet servlet, DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager, UIFactory uiFactory) Creates a new QuarkusVaadinServletService for testing.