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 Summary
ConstructorsConstructorDescriptionCreates the factory; Flow looks it up through the service loader. -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.geolocation.GeolocationClientcreate(com.vaadin.flow.component.UI ui)
-
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:
createin interfacecom.vaadin.flow.component.geolocation.GeolocationClientFactory
-