Interface GeolocationClientFactory

All Superinterfaces:
Serializable
All Known Implementing Classes:
BrowserlessGeolocationClientFactory

@NullMarked public interface GeolocationClientFactory extends Serializable
Framework internal. Factory SPI that produces GeolocationClient instances per UI, resolved via Lookup the first time Geolocation is used for a UI. When a factory is registered the resulting client replaces the built-in browser-backed client for every UI in the application; when none is, Geolocation uses the browser-backed client.

Used by external browserless test drivers to swap the production wire client for an in-memory driver in environments where package-private cross-JAR access is unreliable (split-classloader topologies such as Quarkus). Application code does not reference this interface directly. May be renamed or removed in a future release.

  • Method Details

    • create

      GeolocationClient create(UI ui)
      Creates a GeolocationClient for the given UI. Called once per UI, the first time a Geolocation entry point is invoked for that UI.
      Parameters:
      ui - the UI for which the client is created
      Returns:
      a client that will receive every Geolocation call for that UI; never null