How ivchenko-pa/java-recap-project-objektorientierung-shopservice works
This is a small in-memory shop/order command-line application. Its main workflow reads commands from a transaction file, dispatches them through Main, and uses ShopService to create or update orders and list them by status. Orders are stored through an OrderRepo implementation; the entry point selects the map-backed repository. The service also exposes oldest-order-per-status logic, though the command dispatcher does not invoke it. Edges reflect the sampled source; no README capabilities were documented.
Main entry points: Main.java Command Dispatcher · ShopService.java Shop Service · Order.java Order · OrderMapRepo.java Map Order Repository
Components 13
Command Line
- Command Dispatcher
src/main/java/Main.java - Transaction Commands
src/main/resources/transactions.txt
Order Workflow
- Shop Service
src/main/java/ShopService.java - ID Generator
src/main/java/IdService.java - Missing Product Error
src/main/java/ProductNotFoundException.java
Shop Data
- Order
src/main/java/Order.java - Order Status
src/main/java/OrderStatus.java - Product
src/main/java/Product.java
In-Memory Repositories
- Product Repository
src/main/java/ProductRepo.java - Order Repository API
src/main/java/OrderRepo.java - Map Order Repository
src/main/java/OrderMapRepo.java - List Order Repository
src/main/java/OrderListRepo.java
Other components
- Operator
Connections 19
- Operator → Command Dispatcher: runs
src/main/java/Main.java - Command Dispatcher → Transaction Commands: reads
src/main/java/Main.java - Command Dispatcher → Shop Service: dispatches
src/main/java/Main.java - Command Dispatcher → Map Order Repository: selects
src/main/java/Main.java - Command Dispatcher → Operator: prints results
src/main/java/Main.java - Shop Service → Product Repository: looks up
src/main/java/ShopService.java - Shop Service → Order Repository API: reads and writes
src/main/java/ShopService.java - Shop Service → ID Generator: requests ID
src/main/java/ShopService.java - Shop Service → Order: creates and updates
src/main/java/ShopService.java - Shop Service → Missing Product Error: throws
src/main/java/ShopService.java - Command Dispatcher → Missing Product Error: catches
src/main/java/Main.java - Command Dispatcher → Order Status: selects status
src/main/java/Main.java - Order → Product: contains
src/main/java/Order.java - Order → Order Status: has status
src/main/java/Order.java - Map Order Repository → Order Repository API: implements
src/main/java/OrderMapRepo.java - List Order Repository → Order Repository API: implements
src/main/java/OrderListRepo.java - Map Order Repository → Order: stores
src/main/java/OrderMapRepo.java - List Order Repository → Order: stores
src/main/java/OrderListRepo.java - Product Repository → Product: stores
src/main/java/ProductRepo.java