helpdesk structure analysis

本文介绍了一种基于包的Java软件架构设计方案,详细说明了不同包的功能定位:如constants包用于存放公共类及常量,core包包含核心业务类并定义接口以供实现,data包负责数据库管理包括JavaBeans定义等,exception包自定义异常处理,jsp包分离JSP页面的业务逻辑。

package constants: all public classes, fileds in which is public static final, CONSTANT

package core: commonly used classes,  always contains a interface(like class Service, Message and so on)   and classes implement it.

package data: DB Management, including Java Beans for DB. In which, class DataSet defines the data from DB(including fileds col_name, row_data and dataset_name). DBManage manages the DB connection.

package exception: custom exceptions

package jsp: functions seperated from JSP. Inteface Command and interface ContentModel(javabean)。The classed implementing former interface usually have excute function to return object of the latter type.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值