Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CSC509 Lecture 11

CSC509 Lecture 11

Software Design
Jakarta Platform
(202311)

Javier Gonzalez-Sanchez

November 13, 2023
Tweet

More Decks by Javier Gonzalez-Sanchez

Other Decks in Programming

Transcript

  1. jgs
    CSC 509
    Software Engineering II:
    Modeling and Design
    Lecture 11:
    Jakarta Platform
    Dr. Javier Gonzalez-Sanchez
    [email protected]
    www.javiergs.com
    Building 14 -227
    Office Hours: By appointment

    View full-size slide

  2. jgs
    Previously…

    View full-size slide

  3. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 3
    § Library
    § Framework
    § Platform
    § API
    Concepts

    View full-size slide

  4. jgs
    Jakarta Platform

    View full-size slide

  5. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 5
    Jakarta Platform

    View full-size slide

  6. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 6
    tomcat.apache.org
    3 2
    1

    View full-size slide

  7. jgs
    Let’s Work
    Step 1 of 3

    View full-size slide

  8. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 8
    tomcat.apache.org

    View full-size slide

  9. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 9
    Step 1

    View full-size slide

  10. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 10
    Step 1

    View full-size slide

  11. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 11
    Step 1

    View full-size slide

  12. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 12
    Step 1

    View full-size slide

  13. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 13
    Step 1

    View full-size slide

  14. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 14
    Step 1

    View full-size slide

  15. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 15
    Step 1

    View full-size slide

  16. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 16
    Step 1

    View full-size slide

  17. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 17
    Step 1

    View full-size slide

  18. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 18
    Step 1

    View full-size slide

  19. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 19
    § https://www.liquidweb.com/kb/installing-tomcat-9-on-windows/
    § But install version 10 (Jakarta). Identical process
    Tutorial

    View full-size slide

  20. jgs
    Let’s Work
    Step 2 of 3

    View full-size slide

  21. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 21
    Step 2

    View full-size slide

  22. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 22
    Step 2

    View full-size slide

  23. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 23
    Maven

    View full-size slide

  24. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 24
    Tutorial
    request.getQueryString()

    View full-size slide

  25. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 25
    Step 2

    View full-size slide

  26. jgs
    Let’s Work
    Step 3 of 3

    View full-size slide

  27. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 27
    Step 1

    View full-size slide

  28. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 28

    View full-size slide

  29. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 29
    § https://www3.ntu.edu.sg/home/ehchua/programming/howto/Tomcat9_HowTo.html
    Tutorial

    View full-size slide

  30. jgs
    Test Yourselves
    Web Version

    View full-size slide

  31. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 31
    § Read Java Files from a Local Directory chosen by the user.
    § For every Java file, count its IN and OUT connections.
    § Calculate Instability
    § Calculate Abstractness
    § List every class as Painful, Useless or OK
    What we know

    View full-size slide

  32. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 32
    • Instability = Cout
    (Cin + Cout)
    Stable Abstraction Principle (SAP)

    View full-size slide

  33. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 33
    Guidelines
    Can you make a Web Application version of
    your
    Code Village (Quiz) project?
    • Can you reuse classes?
    • How the UI will look like?
    • Can you create a new class diagram
    (particularly for the UI)?
    • Problems? Solutions?

    View full-size slide

  34. jgs
    Javier Gonzalez-Sanchez | CSC 509 | Fall 2023 | 34
    Questions

    View full-size slide

  35. jgs
    CSC 509 Software Design
    Javier Gonzalez-Sanchez, Ph.D.
    [email protected]
    Fall 2023
    Copyright. These slides can only be used as study material for the class CSC509 at Cal Poly.
    They cannot be distributed or used for another purpose.

    View full-size slide