Download presentation
Presentation is loading. Please wait.
Published byLilian Pamela Byrd Modified over 8 years ago
1
Modeling COM/COM+ components with UML Eran Gery I-Logix
2
Key Characteristics Uniform programming model supported by encapsulated mechanism No need to model external/internal/remote/local views: all encapsulated by COM mechanism Logical vs. Deployment components –Logical: COM(+) objects: essentially classes that realize interfaces –Physical: Binary level components: DLL, EXE, ActiveX, Type Libraries COM attributes (tags): A set of attributes attached to COM elements that specify certain semantics facilitated by COM mechanisms. The COM mechanism supports extension by aggregation (composition)
3
Logical view COM classes, interfaces and class features are stereotyped to capture COM semantics. COM attributes are realized as tags attached to those stereotypes. StereotypeApplies toSpecializes COMClassClass COMInterfaceInterface COMRealizationAbstractionRealize COMLibraryPackage COMAggregationAssociation COMOperationOperation
4
Logical View: Rationale Logical COM components correspond to UML classes. They are not physical but rather describe common set of behaviors and relations. Logical specification is realized differently across different languages and SDKs (ATL, MFC, C++, VB, Java) Assumption: Implementation (language) level is not explicitly modeled –Automated by code generators and wizards
5
Logical View: Example
6
Component Aggregation COM technique for component extension at binary level (language independent) Interfaces of aggregatee are part of aggregate component (merged identities) Modeled via UML association stereotype > providing these semantics Customer > Person > Iperson IcustomerIpersistence COM Notation (UML ??)
7
Aggregation: Example ICustomer > IPersistence > IPerson > Person > Customer > 1 1
8
COM+ Services COM+ provides a set of component based services supported by the OS (W2000) –Transaction –Security –Queuing –Event service (publish/subscribe) –Cashing –Load balancing Most services are specified via COM attributes on components Some require standard interfaces Mostly transparent to component modeling
9
Physical View Models how logical components are packaged in binary physical modules for deployment Various types of physical components (COM+) –ComponentDLL: container of COMClasses –Application: a cluster of componentDLLs Logical components (COMClasses) are allocated to physical ones via the residency relationship The relationship between a client component and a server component is modeled by the usage dependency stereotyped > Interfaces of physical components are implied by the residency relationship. No need to explicitly specify them
10
Physical view - Stereotypes StereotypeApplies toSpecializes ApplicationComponent(new) COMDLLComponentLibrary ComUsageUsage(new)
11
Physical View: Example GUIClient > Small Business >
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.