Class BrowserlessGeolocationClientFactory

java.lang.Object
com.vaadin.flow.component.geolocation.BrowserlessGeolocationClientFactory
All Implemented Interfaces:
com.vaadin.flow.component.geolocation.GeolocationClientFactory, Serializable

public final class BrowserlessGeolocationClientFactory extends Object implements com.vaadin.flow.component.geolocation.GeolocationClientFactory
GeolocationClientFactory that produces an in-memory test client and publishes a GeolocationSimulator on the UI for tests to drive. Wired into Flow's Lookup by MockVaadinHelper.BrowserlessLookupInitializer, scoping registration to the browserless mocking lifecycle instead of leaking through SPI.
Since:
1.1
See Also:
  • Constructor Details

    • BrowserlessGeolocationClientFactory

      public BrowserlessGeolocationClientFactory()
      Creates the factory; Flow looks it up through the service loader.
  • Method Details

    • create

      public com.vaadin.flow.component.geolocation.GeolocationClient create(com.vaadin.flow.component.UI ui)
      Specified by:
      create in interface com.vaadin.flow.component.geolocation.GeolocationClientFactory