Interface ServiceRegistry.MapViewSwapped

Enclosing class:
ServiceRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ServiceRegistry.MapViewSwapped
Runs while ServiceRegistry.setMapView(String, MapViewSwapped) holds this registry's lock, so the field swap and whatever Swing wiring the caller does for the new view are one atomic step to outside readers of ServiceRegistry.getMapView() / ServiceRegistry.isMapViewAvailable().
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMapViewSwapped(MapView previous, MapView created)
     
  • Method Details

    • onMapViewSwapped

      void onMapViewSwapped(MapView previous, MapView created)