 JAVA 应用与开发 - 高级类特性现�����的方法��为抽象方法� 抽象方法������abstract��� ��抽象方法的类����为抽象类�����abstract��� CODE ± 抽象类示例 1 public abstract class Animal { //定义为抽象类 2 private int age; 4 public void setAge(int age) { 5 this.age = age; 6 } 8 return age; 10 } 12 public abstract void eat(); //抽象方法 13 } 4 29 ����类 CODE ± 抽象类继承 1 public class Person extends Animal { 2 private String name; 3 public void setName(String name) { 4 this.name } 9 public void eat() { //重写方法 10 System.out.println("��→��→���→��→���"); 11 } 12 } 1 public class Bird extends Animal { 2 public void fly(){ 3 System.out.println("我���!"); 4 } 5 public void eat(){0 码力 | 61 页 | 677.55 KB | 1 年前3 JAVA 应用与开发 - 高级类特性现�����的方法��为抽象方法� 抽象方法������abstract��� ��抽象方法的类����为抽象类�����abstract��� CODE ± 抽象类示例 1 public abstract class Animal { //定义为抽象类 2 private int age; 4 public void setAge(int age) { 5 this.age = age; 6 } 8 return age; 10 } 12 public abstract void eat(); //抽象方法 13 } 4 29 ����类 CODE ± 抽象类继承 1 public class Person extends Animal { 2 private String name; 3 public void setName(String name) { 4 this.name } 9 public void eat() { //重写方法 10 System.out.println("��→��→���→��→���"); 11 } 12 } 1 public class Bird extends Animal { 2 public void fly(){ 3 System.out.println("我���!"); 4 } 5 public void eat(){0 码力 | 61 页 | 677.55 KB | 1 年前3
 Java 应用与开发 - 类加载和反射个 时候就必须用到反射——运行时动态加载需要加载的对象。 一个例子 Struts2 框架开发中会在 struts.xml 里配置 Action 1 Java 应用与开发 - 类加载和反射个 时候就必须用到反射——运行时动态加载需要加载的对象。 一个例子 Struts2 框架开发中会在 struts.xml 里配置 Action 1- class="ouc.j2ee.action.LoginAction" method="execute"> 2 - index.jsp 3- class 属性创建 LoginAction 的实例,并用 invoke 方法来调用 execute 方法。 这个过程是基于 Java 反射框架完成的。 大纲 反射 类的加载、连接和初始化 类加载器 使用反射生成并操作对象 本节习题 反射的主要用途 O 依赖注入 有两个组件 A 和 B,A 依赖于 B。 1 public class A { 2 public setB() 方法: 1 public class A { 2 private B b; 3 public void importantMethod() { 4 b.usefulMethod(); 5 ... 6 } 8 public void setB(B b) { 9 this.b = b; 10 } 11 } 1 - class="ouc.j2ee.sample 0 码力 | 46 页 | 714.40 KB | 1 年前3
 Apache Wicket 8.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 350 页 | 9.95 MB | 1 年前3 Apache Wicket 8.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 350 页 | 9.95 MB | 1 年前3
 Apache Wicket 7.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 346 页 | 10.00 MB | 1 年前3 Apache Wicket 7.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 346 页 | 10.00 MB | 1 年前3
 Apache Wicket 10.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 336 页 | 7.16 MB | 1 年前3 Apache Wicket 10.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 336 页 | 7.16 MB | 1 年前3
 Apache Wicket 9.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 335 页 | 7.15 MB | 1 年前3 Apache Wicket 9.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.3. The HomePage class. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 9.1. Class Application and request processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RequestCycle. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 9.4. Session Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 335 页 | 7.15 MB | 1 年前3
 Spring Framework 2.0.4 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.4) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 500 页 | 3.60 MB | 1 年前3 Spring Framework 2.0.4 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.4) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 500 页 | 3.60 MB | 1 年前3
 Spring Framework 2.0.3 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.3) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 495 页 | 3.57 MB | 1 年前3 Spring Framework 2.0.3 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.3) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 495 页 | 3.57 MB | 1 年前3
 Spring Framework 2.0.2 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.2) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 498 页 | 3.55 MB | 1 年前3 Spring Framework 2.0.2 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.2) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 498 页 | 3.55 MB | 1 年前3
 Spring Framework 2.0.1 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.1) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 496 页 | 3.55 MB | 1 年前3 Spring Framework 2.0.1 Referencenumerous applications and formalized as design patterns, and actually codifies these patterns as first class objects that you as an architect and developer can take away and integrate into your own application(s) Spring Framework contains a lot of features, which are well-organized in seven modules shown in the diagram below. This chapter discusses each of the modules in turn. Spring Framework (2.0.1) 15 Overview messages and the synchronous receiving of messages. This functionality (encapsulated in the JmsTemplate class) is great, but it doesn't address the requirement for the asynchronous receiving of messages. Spring0 码力 | 496 页 | 3.55 MB | 1 年前3
共 420 条
- 1
- 2
- 3
- 4
- 5
- 6
- 42














 
 