在web学习时候,一些概念不清楚,总结如下:
框架和类库都是类的集合。但是,是基于不同的标准形成的概念,所以两者实际上没啥可比性。
框架:因为某种application的目的(可以是对architecture的implementation),而形成的一个类集合, 并且类之间的关系不全是独立。所以一部分类是已经是应用程序的一部分,一部分是等待调用,独立。 完成的是这种目的的一部分分数据流动。
从数据流的角度讲,框架帮助软件完成了部分数据流的迁移(在程序员控制之外,程序员不可见)。而其他功能类语言等,数据流的迁移都在对于程序员都是可见,可控的,只是对应于一条语句,有的数据流流动跨度较大。
。
类库:只是基于语义分类的类集合,比如数学库,GUI(swing awt)库。
架构:总体的的一种抽象设计(针对于application)。MVC可以说是web app的架构。(2013.11.1: 架构包含结构含义,但是从功能上进行了结构单位的划分)
javabean:是功能的一种功能封装组件,是面向组件软件开发的一种实现。较之类,有着更高的集成度。JavaBeans are a component architecture for encapsulating functionalityis a simple java class used to represent the model of your application. To be called a JavaBean, the class must have public getters and setters for all its properties, must have a no-argument constructor, and must be serializable.
servlet:The servlet is a Java class (used as an Controller) in a java Web Application. Its role is to manage the HTTP Request and generate an HTTP Response. The Servlet is using JavaBeans to get its information from the database for instance.
1.JavaBeans are a component architecture for encapsulating functionality.is a simple java class used to represent the model of your application. To be called a JavaBean, the class must have public getters and setters for all its properties, must have a no-argument constructor, and must be serializable.
2.A servlet is used for handling requests in a web application, so yes it is similar to a controller.
3.The servlet is a Java class (used as an Controller) in a java Web Application. Its role is to manage the HTTP Request and generate an HTTP Response. The Servlet is using JavaBeans to get its information from the database for instanc