This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OderSericeImpl implement OrderService { | |
private final ShoppingCartService cartService; | |
private final PricingService pricingService; | |
private final InventoryService inventoryService; | |
private final UserSession userSession; | |
private final TimeProvider timeProvider; | |
// ... and many more, this list will keep increasing when more requirements added | |
public OrderService( | |
ShoppingCartService cartService, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this script from the maven module directory to start a jshell with | |
# all dependent class paths injected. | |
# Please never run it on the parent maven project directory. | |
# It depends on java9 or above | |
if [ ! -d "target" ]; then | |
echo "Please run it under a module directory. And make sure it's not parent module directory. And make a maven install first" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const { argv } = require('process'); | |
/** | |
Static http server implemented with NodeJS. | |
Features: | |
1. No external dependencies |