1 package org.simantics.district.route;
4 import java.util.concurrent.CompletableFuture;
7 * @author Tuukka Lehtonen
9 public interface RouteService {
11 void addListener(RouteServiceListener l);
13 void removeListener(RouteServiceListener l);
15 Route createRoute(String name, Object backendModelEntity);
17 void registerRoute(Route route);
19 void refreshRoute(Route route);
21 CompletableFuture<Route> persistRoute(Route route);
23 CompletableFuture<?> discardRoute(Route route);
25 List<Route> listRoutes();
27 void registerRouter(Router router);
29 void unregisterRouter(Router router);
31 List<Router> routers();
33 Route readRoute(Object backendRouteObject);