MS3, LS01a, The Service LayerVersión en línea Java concepts, terms and definitions por steve finch 1 Service Layer 2 Model 3 Controller 4 View 5 DAO Only component that can talk to DAOs Sits between controller(s) and DAOs Contains business logic for the application Can validate input Can do calculations Can coordinate interaction among multiple DAOs Responsible for persisting, retrieving, and ferrying data around the application. Includes DAO(s) Indludes DTO(s) Orchestrator of the application Knows what needs to be done and when it needs to be done Doesn't do any of the work itself Is smart, but lazy Responsible for communicating with the user Can contain presentation logic Cannot contain any other application logic Fast and stupid Can do only what it is told to do