框架(framework),架构(architecture),库(library),javabean, servlet.

在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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值