Cafe cafe = (Cafe) context.getBean("cafe");
for (int i = 1; i <= count; i++) {
Order order = new Order(i);
order.addItem(DrinkType.LATTE, 2, false);
order.addItem(DrinkType.MOCHA, 3, true);
cafe.placeOrder(order);
}
}
public static void main(String[] args) throws InterruptedException, IOException {
AbstractApplicationContext context = new ClassPathXmlApplicationContext(