320 likes | 452 Views
蔡 剑 , Ph.D. Java Web应用开发:J2EE和Tomcat. 本讲内容. 网络系统设计模式 综合案例分析. Model Encapsulates application state Responds to state queries Exposes application functionality Notifies views of changes. State Change. State Query. Change Notice. View Renders the models Request updates from models
E N D
蔡 剑, Ph.D. Java Web应用开发:J2EE和Tomcat
本讲内容 • 网络系统设计模式 • 综合案例分析
Model • Encapsulates application state • Responds to state queries • Exposes application functionality • Notifies views of changes State Change State Query Change Notice • View • Renders the models • Request updates from models • Sends user gestures to Controller • Allows controller to select View • Controller • Define application behavior • Maps user actions to model updates • Select view for response • One for each functionality View Selection User gestures Web Application Architecture: MVC Model
What is A Design Pattern? • A description of a recurrent problem and of the core of possible high-quality solutions. • A design pattern provides a scheme for refining the subsystems or components of a software system, or the relationships between them. It describes a commonly-recurring structure of communicating components that solves a general design problem within a particular context.
Applet Applet Applet Client Client Client HTML,JScript HTML,JScript HTML,JScript Conflict Data Process Data Product Data Perspective Data Organization Data STARS Architecture Stakeholders Internet (www, TCP/IP, HTML, XML..) HTTP Servlets/JSP (JSDK) Service Manager GUI /View Organization Viewer Perspective Model Builder/Viewer Process Builder/Viewer Product Builder/Viewer Conflict Viewer XML Control Process Management Product Management Conflict Management Perspective Management Organization Management EnterpriseConnector Mail WAP Process Task/State Product EJB Concept EJB Perspective EJB Conflict EJB Stakeholder EJB Model SQL DBMS
CM CM Process Models Process Models Service Broker find publish Perspective Models Perspective Models Service Provider Service Requester Who Who bind STARS Functional Levels Level 3: Collaboration enabled B2B Service Level 2: Perspective and Conflict Management Level 1: Basic Collaborative Process Management
lookup publish UDDI ebXML UDDI ebXML integration CPML Collaboration Enabled B2B Services STARS 2.0 STARS 2.0 Process Investigator
Ontology Analysis Server Business Process Integration Server I I $ P $ $ Collaborative Process Repository Enterprise Collaboration Support Infrastructure Process Repository Knowledge Repository Business Process Management Server Process Repository firewall Knowledge Analysis Server Designer1 Business Portal Customer1 Business Process Management Server Designer2