




免费预览已结束,剩余11页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
英文原文:Serial CommunicationThis paper introduces the project development framework based on embedded the notion behind, and introduce how IT used for IT project development. Because there are many the same design and development work in different ways, and not always repeat with best practice, so many development framework established. We have defined the concern of problems and application mode, represents the effective solutions of tools. Development framework provides:(1) from the user interface to the data integration application development stack,(2) a framework, basic environment and their related technology, the technology used to use some other framework. Architecture defines a development method, its purpose is to assist customer development project.Software kit for the complicated space dynamic system of nonlinear analysis used more and more in the network platform based on Web, to realize their user interface, scientific analysis, distribution simulation results between scientists and exchange of information. For many application system based on Web access nonlinear analysis of simulation software to become an important component. Network hardware and software changes in technology intensive offers than the past more free choice. Therefore, the reasonable selection of WEB platform for the development of the whole region and the nonlinear analysis and its many applications has become more and more important significance. The current stage of the WEB development characteristic is there appear a large number of open source framework. Web development framework will be referred to a higher level, and that the basic function of the repeated use possible and to enhance the development of productivity.In some cases, open source framework provides no common problem of a solution. For this reason, in the open source development framework established on the basis of their project development framework. This article is to describe a is a Linux based framework, the framework of the use of the open source framework based on Web and help develop the application. Through the analysis of the existing open source frame, this paper proposes a new framework, basic environment and they used to improve and use of some other frame the relevant technology. Architecture defines their development method, its purpose is to assist customer development and examples project.Application design should focus on the project in use again. Even with the unique function requirement, also have common mode using the available, which makes them the design and the development can reuse. This paper introduces a custom framework, the framework can be used to define the developers using the same application problems and definition of design patterns. This framework, and we will call it so-and-so development framework, provide a model and tools, set up the industry best practices, make suitable for the application of the common problems. It provides a from of integrated application program said the development the stack. This paper illustrates the application of these problems and mode, tools and industry best practices. So-and-so development framework can according to the needs of the various projects to customize. Its development and configuration is based on Struts, such as are Hibernate, JUnit, and various frame and tools.Web applications have all sorts of design problems, such as performance, commercial logic, access to data and safety. Different code of layer separation design has the following several aspects of the advantage, such as: convenient in maintenance and implementation model of good design ability, choose special tools and ability of the specific problem solving techniques. Will a project the separation between the layer and layer caused the dependencies between layer. For example, a simple use case, it involves the data input and inquires the usually must integrate said business logic and data access to achieve desired function 3. Therefore, there must be a clear strategy to manage these dependencies. Development framework including design patterns, reusable code and configuration files, make development framework to be used as much as possible. The framework of reverse control are used together to management. Are framework provides a method of each layer integration into a application project. It through context to complete this application are a target, which is an object management strategy depends on between. The use of injection are dependent on technology and intercept are presented here.We code dependent on the use of object. It is responsible for creating these objects. This may result in tight coupling, but we hope our code is loosely coupled. Rely on injection is a technology that can help us achieve this goal. Rely on injection is a reverse control (IOC) of a kind of form . When application USES depend on, code into will become more clean and easy. This is loose coupling, thus more easy to configure and test. Development framework used DuoGe application background documents are to define layer and layer of the relationship between depend on. Intercept method is aspect-oriented programming (AOP) concept. AOP intercept method are is through JDK dynamic agency to fulfill. Development framework are used to ask such as trading AOP management management and performance monitoring, etc.Development framework including two different parts: code and configuration. Code located in a specific application layer, and focus on a specific conditions of application solutions. It may and database connections, or will show screen. Data Each layer of the application configuration will be linked together. Isolated from code configurations that we can independent management, so that we in configuration based on the same code conveniently different configuration. For example, data access object (QT) know it is to use data source to connect a JDBC through a database, but it does not know this data is how to achieve. It may be a Linux named and directory interface JNDI context or from the driver. It can point to remote database or local database. No matter where you are, data from the way the data source operation performed QT is the same. Also, the service object may depend on QT, but dont know is how to realize the QT, may through direct JDBC Hibernate, Web services, or. Interactive service object and QT has the same way, but no matter the realization of the QT.Through should context are are our application management of the whole configuration, the configuration is some XML files. We can in one file definition of application environment. However, we can in smaller file definition it simplifies configuration management. Such application environment of a set of logical file a called configuration of the application of complete set configuration.Based on the development of the enterprise application of standard Linux configuration is in a framework of the configuration Settings to use such as data sources and JNDI resources external resources. This type of configuration sometimes may bring the following questions:(1) has not been fully loaded database. Developers may have to test to certain types of data display, but if the basic data is not yet finished, they will not be able to do this;(2) service or QTS may not be development. Integration of unfinished service or may hinder the development process of QTS.These problems reduce productivity. Development framework from its code has spread its configuration, we can use for development have choice of configuration sets. This will lighten our external system availability of worry, this to solve the middle of the development demand is not relevant.Development framework defined the two configuration set: the default and independence. We can also customize application, to increase based on our project need additional configuration sets. The default configuration used in JNDI the definition of data source to connect to the database. It is fully use the application service and QTS. Independent configuration Settings to development, it is the most flexible. This configuration set:Use DriverManagerDataSource connected to any local installation database or development database;Use the DataSourceTransactionManager are a local affairs management;Use fully the development application services and QTS;Make full use of context in the application server application are outside for operation and test.Through its application development framework configuration to context. Application context is defined a or DuoGe XML files. A configuration set is defined a application of context a XML files. Configuration set included two parts: service and network. The service in the process of integration defined QTS and resources. A configuration cant finish at the same time these parts.Development framework configuration set through are called bean mapping the context was put together, these mapping in beanRefContext. XML and applicationContextMapping. Defined in the properties. BeanRefContext. An XML file definition all the configuration services section. This document is located in SRC/service project of configuration of the directory. Application context is Shared between is also through the list of configuration to realize. In addition, each configuration have their own subdirectories, including his own particular configuration. For example service and QTS through the configuration set to share, and support services (such as data sources) belong to subdirectories. XML files in application through the use of markup to bean bean are defined. Bean are is a Linux object and through the application of context to initialize.Use development framework, in a typical project in the following code and configuration:(1)Or, ActionForm classes and validation. An XML file;(2)Service interfaces and the implementation of;(3)DAO interface and the implementation of;(4) of these relationship management. When we began our example, we must know development to all these classes and the importance of the relationship between them.The test is in the process of developing the project should be a part of. Use a development framework of the application, the unit test means testing only service or integrated layer of the single classes. The presentation layer (or classes) is not execution unit test. This kind of the aim of the test is to ensure that every kind of behavior consistent with the expected encapsulation. The project unit test is based on JUnit framework. And unit test different, integration tests need to test the mutual dependence between code. The purpose of this test is to ensure that each different class (different developers) together can also want to expect the same operation. In functional testing process, the key is to use different scene for function tests. The typical functional tests included in the business layer with different data type of test.In order to perform different types of test, project in the development process have to test the test is. Below is a list of some of the basic characteristics of testing project.The simple and integrated development unit test. We can in no data sources, or line up of the cases execution unit test. Of course, we can also simulation and testing phase rely on code.(2) there is easy to process all kinds of simulation test function testing of the scene.(3) in the whole life cycle to run all test for.(4) from the application code in separate out clear test code.Careful planning application of each design problems, such as said, services and data access for the application of can test is very important. The application code to the get method, set method, variable and start. Unit tests are is the foundation of any other test methods. The convenience of design development framework of can test application development methods: provide test class templates to help build unit test, make application more easy to configure in order to adapt to the test requirements. Unit test can run like any JUnit test. The default specially developed construction script provides a task to run the unit test. The task of the deployment, can run separately EAR documents.The Struts framework and development framework to achieve the page, and Linux can be expanded to provide extra function used for other projects. When use Struts framework of development, first of all, we in web. XML configuration Servlet Action; And then in the struts config. XML configuration-or, bean and local fang form this; Finally, we in the validation. XML configuration validation rules.The application of the method in a development framework of has changed, developers unnecessary edit XML config. Or validation. An XML file. Instead, we XDoclet comments in Action through direct and Action of direct configuration. One The information in the operation Ant script translation insert struts config. XML and validation-In XML files.There are two types: the required to verify the data format of validation and business logic verification. The data format of verification in the presentation layer, the best of the best business logic and validation service layer in for verification. In the business of the business logic of the mistake happened, must through the exceptions for processing.The following is the presentation layer design goal:Each JSP file is only an Action class and ActionForm class. A single action class must deal with a single page;(2) use XDoclet definition rely on and validation rules;(3) developers should avoid or reduce use sessoin object, because it hinders the expansibility.Development framework provides a default or template classes, including the method of solving the above design goal. The following is the typical development web page need code:Create a actionType default with called hidden the JSP files, used for domain in happening on the page with user behavior.(2) to create a template of Action of the expansion of new Action. We must use XDoclet configuration ActionForm and service the associations between classes. Then, we should be aimed at or hidden domain by the values in the to build concrete treatment user action method. Finally, we need to give the Actoin according to such access. This is the configuration files are done the work.(3) to create a new ActionForm class, and XDoclet comments validation rules specified.Once the JSP, Action and ActionForm create complete, it must run Ant scripts to generate struts XML config file.-.Through the framework established applications to support directly use the JDBC and Hibernate framework data to relational database of persistent. The application configuration files are through context. Directly use the JDBC DAOs must inherit the JdbcDaoSupport. Java are framework class. Also, use the Hibernate QTS must inherit the HibernateDaoSupport. Java are framework class.Development framework are used to maintain the code dependence. Between framework Some dependent (such as Action and ActionForm) in struts XML config. In-configuration, and some (such as service and DAO) are used in the context applicationContext. XML file (in) configuration. In a team with the configuration files can be developers sharing. This is why in these configuration can happen version conflict. Development framework provides a new efficient method, use special comments to define these rely on. Through the use of these comments, configuration is simple and mutual conflicts also can be avoided.Development framework advocate use plain-this the old-Java-object (POJOS) achieve business logic. Business logic must stated as interface. All the realization of the service must be realized one or DuoGe business interface when business rules validation service layer out business abnormal this is recommended. Development framework based on the framework of the transaction processing method are. It is through the aspects of the realization of the programming (AOP).Development framework provides a service from interface (and the business logic of the application program interface (contact) separation deployment and service customers contact the good practice). In WDSL deployment in the interface is Linux interface said the service external performance. To realize this interface class must represent the implementation service realize the kind of need. Interface So can ensure that all the business logic is held in a correct place. Service interface is a Linux interface, representative treasure logic. In most cases, deploy interfaces contain service interface and come from a subset method.I can with Apache Axis Web service framework is at present were Web service standards. Development of a Web service, there are two different methods : we make and Mr. Make. We make the difference with Mr. Make WDSL was first created in the code or generation.When service customers or suppliers external suppliers, they can use different techniques to realize, we make WEB service method to develop WEB service is a very good practices.And outside of the integration of resources have DuoZhong technologies, such as database and Web services. Development framework used in logic layer called it integration layer of technology. This layer of the design goal is: (1) through the JDBC or Hibernate in database access must encapsulate in data access object (DAO). (2) Web service should be as simple as possible. (3) all the external data format to application domain object should be limited to the floor. (4) in this layer of unit tests do simple application.Development framework support the use of Hibernate and direct JDBC access relational database called. Use template classes are framework: JdbcTemplate and HibernateTemplate is recommended. When directly use the JDBC access relational database, suggest the applications DAOS are inherited from the J
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年村卫生室人员公共卫生项目知识培训考试题及答案(一)
- 2025年兽医师(病理学)基础知识考试题库与答案
- 2025年美容师理论基础知识资格考试模拟试题库及答案
- 磨损技术测试题及答案
- 2025贷款合同协议书
- 2025合同期满解除劳动合同通知范文
- 2025确保合同公平:防范家装合同中的常见风险让你无忧装修
- 2025年北京市二手交易合同
- 揭阳空港消防知识培训课件
- 金融行业点钞员面试实战模拟试题库
- AO 史密斯热水器EES系列说明书
- 中医体重管理
- 2024-2025学年广东省佛山一中高二(上)第一次质检数学试卷(10月份)(含答案)
- 昏迷患者的评估
- 教育部高中化学教学仪器设备配备标准
- 水泵拆除及安装施工方案
- 2024齿轮轮齿的磨损和损伤第1部分:术语和特性
- 2024-2029年中国合成红宝石行业市场现状分析及竞争格局与投资发展研究报告
- HG/T 4184-2023 责任关怀实施准则 (正式版)
- YYT 1843-2022 医用电气设备网络安全基本要求
- 甲状腺围手术期的护理
评论
0/150
提交评论