Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Chapter 9 Implementation
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Introduction Key objectives –To define the organization of the implementation elements (including both source code and executable code) –To produce and unit test the implementation elements
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Implementation Model The result of implementation activities It contains: –Implementation directories represents a physical directory on disk Represented in UML as package –Implementation files Represents a physical file on disk Represented as a UML artifact
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Categories of elements CategoryDeployment Location Organization EJBEJB ContainerJava Package ServletWeb containerJava Package JSP, image file, static HTML file Web containerDirectory
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Implementation and Iterative Development
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Implementation Overview 1.Structure the implementation model 2.Implement design elements
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Implementation overview
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Workflow detail: Structure the implementation model Contains two activities: 1.Structure the implementation model 2.Review the implementation Refines the design model into the implementation model Inputting artifacts: –Deployment models –Design model (design package, design subsystem) –Implementation guidelines Resulting artifacts: –Implementation model (implementation directory) –Software architecture document
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Structure the Implementation Model Workflow Detail Overview Diagram
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Step: establish the implementation model structure Three facets of implementation model: –The java packaging structure –The virtual directory structure –The organization of J2EE modules and their associated deployment descriptors
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Online Auction Application Design Model Structure
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Java Packaging in the Online Auction Application
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Virtual Directory Structure in the Online Auction Application
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Deployment Elements Structure
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Step: Conduct the review Serves as “quality gate” that ensures that the reviewed artifacts are mature enough to support subsequent development activities. Checkpoints the implementation structure model should: –Be comprehensive and support all required implementation elements –Acknowledge the constraints imposed by the implementation environment –Conform to the appropriate implementation guidelines and programming guidelines –Support concerns such as integration, testing, and concurrent development
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Workflow detail: implement design elements Activities: 1.Implement design elements 2.Perform unit tests 3.Review the implementation
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Implement Design Elements Workflow Detail Overview Diagram
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Activity: Implement design elements Input artifacts: –Data model –Design model –Implementation guidelines –Implementation model –Programming guidelines Resulting artifacts: –Change request –Implementation model Steps: –Implement design subsystem –Implement framework components –Implement design classes and interfaces –Implement deployment elements
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Java Elements in the Design Model
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Java Implementation Files in the Implementation Model
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Virtual Directory Elements in the Design Model
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Virtual Directory Implementation Files in the Implementation Model
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Deployment Elements
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 The Content of the Auction Manager EJB JAR
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Activity: Perform Unit Tests To verify –That the behaviour of a unit conforms to its specification –The internal structure of a unit Input Artifacts: –Design model –Implementation guidelines –Implementation model –Programming guidelines –Test guidelines –Test scripts
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Activity: Perform Unit Tests (2) Resulting artifacts: –Change request –Test results –Test scripts Steps: –Implement unit tests –Execute unit tests –Evaluate the execution of Unit tests –Verify unit test results –Recover from halted unit tests
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared by Agus Widodo D2098 Activity: review the Implementation To verify the implementation elements Input Artifacts: –Implementation guidelines –Implementation model –Programming guidelines Resulting artifacts: –Change request –Review Records Steps: –Conduct the review