aboutsummaryrefslogtreecommitdiffstats
path: root/tools/_util.sh
diff options
context:
space:
mode:
authorKostya <mail@sartin.in>2026-10-11 19:28:04 +0300
committerKostya <mail@sartin.in>2026-10-11 19:28:30 +0300
commit3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb (patch)
tree80408f2f1e6af973b1f61288c87a89b4ee8e96d3 /tools/_util.sh
parentdc616e0f340f28b320253bf9a70778a07b885ffd (diff)
downloadguess-market-3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb.tar.gz
guess-market-3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb.tar.xz
guess-market-3a734b84705ccb8174e9cf24b74d7a3c3b2c1beb.zip
ui-fx: move the JavaFX UI into a module that sees only the api
Exercise 3 asks for a new desktop client that reuses the Exercise 2 screens, and the course asks that clients depend on the DTO contract, never on the engine. ui-desktop mixed both: its views and controllers only talk to the api interfaces, but AppView and AppState each had a convenience constructor that built a ServiceEngine, which tied every UI class to the service module. Move the screens, controllers, components, FXML, skins and fonts into a new ui-fx module that depends on api alone. Packages are unchanged, so FXML controller names and resource paths keep working as they are. ui-desktop keeps only the Exercise 2 app: Launcher, App, which now builds the ServiceEngine and passes its contexts in, and ServiceEngine itself. The Exercise 3 client can then reuse ui-fx with remote contexts and never put the engine on its classpath. The build proves the split: ui-fx compiles with nothing but api visible. Tests move with the code they cover. AppStateTest drives the real engine, so it stays in ui-desktop.
Diffstat (limited to 'tools/_util.sh')
-rw-r--r--tools/_util.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/_util.sh b/tools/_util.sh
index 3a29ecb..7351e62 100644
--- a/tools/_util.sh
+++ b/tools/_util.sh
@@ -5,13 +5,14 @@ case "$(uname -s)" in
5 *) SEP=":" ;; 5 *) SEP=":" ;;
6esac 6esac
7 7
8MODULES="api service server ui-console ui-desktop" 8MODULES="api service server ui-fx ui-console ui-desktop"
9 9
10DEPS_api="" 10DEPS_api=""
11DEPS_service="api" 11DEPS_service="api"
12DEPS_server="api service" 12DEPS_server="api service"
13DEPS_ui_console="api service" 13DEPS_ui_console="api service"
14DEPS_ui_desktop="api service" 14DEPS_ui_fx="api"
15DEPS_ui_desktop="api service ui-fx"
15 16
16RUNTIME_LIB_DIRS="pico jaxb gson openjfx" 17RUNTIME_LIB_DIRS="pico jaxb gson openjfx"
17 18