Class BrowserlessGeolocationClientFactory
java.lang.Object
com.vaadin.flow.component.geolocation.BrowserlessGeolocationClientFactory
- All Implemented Interfaces:
GeolocationClientFactory,Serializable
public final class BrowserlessGeolocationClientFactory
extends Object
implements 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.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BrowserlessGeolocationClientFactory
public BrowserlessGeolocationClientFactory()
-
-
Method Details
-
create
Description copied from interface:GeolocationClientFactoryCreates aGeolocationClientfor the given UI. Called once per UI, the first time aGeolocationentry point is invoked for that UI.- Specified by:
createin interfaceGeolocationClientFactory- Parameters:
ui- the UI for which the client is created- Returns:
- a client that will receive every
Geolocationcall for that UI; never null
-