Thẻ
Thay chuỗi if-else bằng strategy, dùng lambda làm strategy, và phát sự kiện tới listener mà không phụ thuộc ngược.