JAVA 应用与开发 - 控制台应用程序设计0 码力 | 63 页 | 2.84 MB | 1 年前3
《Java 应用与开发》课程讲义 - 王晓东以门和警报设计作为示例,一般来说,门都有 open() 和 close() 这两个动作。通过 抽象类和接口来定义这个抽象概念: 1 abstract class Door { 2 public abstract void open(); 3 public abstract void close (); 4 } 1 interface Door { 2 public abstract void open(); 3 将这三个功能都放在接口里面,但需要用到报警功能的类就需要实现这个接口中 的 open() 和 close(),也许这个类根本就不具备 open() 和 close() 这两个功能,比如火灾 报警器。不合理规划 Door 的 open() 、close() 和 alarm() 根本就属于两个不同范畴内的行为: • open() 和 close() 属于门本身固有的行为特性。 • alarm() alarm() 属于延伸的附加行为。 更为合理的思路 单独将报警设计为一个接口,包含 alarm() 行为; Door 设计为单独的抽象类, 包含 open() 和 close() 两种行为; 设计一个报警门继承 Door 类和实现 Alarm 接口。 . 课程配套代码 ± package sample.advance.door 7.4 嵌套类 7.4.1 什么是嵌套类 Java 语言支持0 码力 | 330 页 | 6.54 MB | 1 年前3
Apache Wicket 10.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 11.1. What is a model? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 11.6. Model chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 336 页 | 7.16 MB | 1 年前3
Apache Wicket 9.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 11.1. What is a model? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 11.6. Model chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 335 页 | 7.15 MB | 1 年前3
Apache Wicket 8.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 11.1. What is a model? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 11.6. Model chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 350 页 | 9.95 MB | 1 年前3
Apache Wicket 7.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 11.1. What is a model? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 11.5. Model chaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 346 页 | 10.00 MB | 1 年前3
Spring Boot 2.0.0.M4 Reference Guideexample Upgrading from an earlier version of Spring Boot 11. Developing your first Spring Boot application Creating the POM Adding classpath dependencies Writing the code The @RestController and @RequestMapping Gradle Ant Starters 14. Structuring your code Using the “default” package Locating the main application class 15. Configuration classes Importing additional configuration classes Importing XML configuration injection 18. Using the @SpringBootApplication annotation 19. Running your application Running from an IDE Running as a packaged application Using the Maven plugin Using the Gradle plugin Hot swapping 20. Developer0 码力 | 583 页 | 501.03 KB | 1 年前3
Spring Framwork Web on Servlet Stack v5.3.36 SNAPSHOT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 1.3.4. Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 Model Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . for request processing, while actual work is performed by configurable delegate components. This model is flexible and supports diverse workflows. The DispatcherServlet, as any Servlet, needs to be declared0 码力 | 259 页 | 3.58 MB | 1 年前3
Spring Boot 2.0.0.M3 Reference Guideexample Upgrading from an earlier version of Spring Boot 11. Developing your first Spring Boot application Creating the POM Adding classpath dependencies Writing the code The @RestController and @RequestMapping Gradle Ant Starters 14. Structuring your code Using the “default” package Locating the main application class 15. Configuration classes Importing additional configuration classes Importing XML configuration injection 18. Using the @SpringBootApplication annotation 19. Running your application Running from an IDE Running as a packaged application Using the Maven plugin Using the Gradle plugin Hot swapping 20. Developer0 码力 | 590 页 | 513.07 KB | 1 年前3
Spring Boot 1.4.0.RELEASE Reference Documentationexample Upgrading from an earlier version of Spring Boot 11. Developing your first Spring Boot application Creating the POM Adding classpath dependencies Writing the code The @RestController and @RequestMapping Gradle Ant Starters 14. Structuring your code Using the “default” package Locating the main application class 15. Configuration classes Importing additional configuration classes Importing XML configuration injection 18. Using the @SpringBootApplication annotation 19. Running your application Running from an IDE Running as a packaged application Using the Maven plugin Using the Gradle plugin Hot swapping 20. Developer0 码力 | 554 页 | 493.90 KB | 1 年前3
共 407 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41













