TAILIEUCHUNG - Design Patterns FOR Dummies phần 10

"Đóng gói một yêu cầu như một đối tượng, do đó cho phép bạn tham số khách hàng với các yêu cầu khác nhau, xếp hàng hoặc đăng nhập yêu cầu, và hỗ trợ các hoạt động thể hoàn tác được." Về điều đó "thông số khách hàng với các yêu cầu khác nhau "? Có gì là tất cả về? Giả sử bạn đã có một thiết lập dành riêng cho các invokers, | 278 Part III The Part of Tens You can also find recycle bins in Java such as in the thread pooling that you can configure using classes like ScheduledThreadPoolExecutor and ThreadPoolExecutor. Entering the Big Time with the ModetwieWfControBer Pattern Another popular design pattern you see at the Portland Pattern Repository is the Model View Controller or MVC design pattern. This pattern represents a good design insight separating the code used for presentation from that which works on and handles data. Very often Java-based online applications are written with a few JavaServer Pages JSPs and JSP is notorious for mixing presentation code including HTML with logic code Java code . Larger online Java applications particularly those based on an application framework like Jakarta Struts very often use MVC architecture these days. The controller which is often a Java servlet oversees the whole application calling code in the model often a JavaBean to handle the internal logic and business rules and then sending the results to the presentation layer the view often made up of JSPs which interacts with the user. Here s an overview of these three components Model Implements the data crunching of the application. This is the core code that does the application s internal work. The model doesn t know anything about the view or the controller you just pass it data and it goes from there returning its results. In online Java applications the model is often implemented using JavaBeans. View Implements the presentation layer that interacts with the user. When the user starts interacting with an online Java application the Web page s they see are part of the view. The view also takes data supplied to it usually from the controller and displays it. In online Java applications the view is often implemented using JSP. Controller Acts as the boss of the application and is responsible for routing data to the right model and

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.