| January 2009 |
| Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
| |
|
|
|
1 |
2 |
3 |
| 4 |
5 |
6 |
7 |
8 |
9 |
10 |
| 11 |
12 |
13 |
14 |
15 |
16 |
17 |
| 18 |
19 |
20 |
21 |
22 |
23 |
24 |
| 25 |
26 |
27 |
28 |
29 |
30 |
31 |
Tue, 29 Jul 2003
COM(+)
- Good technology conceptually
- Lots of market
- Tied to Windows platform
- C/C++ glue
- soon to be obsolete?
- No vendor-neutral standard
CORBA
- OK technology, not great
- platform-neutral
- OMG Standard
- complex
- expensive?
- so-so language support
- Expensive(?), so-so tools
EJB
- Java-only
- vendor-neutral
- heavyweight, overblown
- OK for session beans -- services
Web Services
- Language-neutral
- Vendor-neutral
- Platform-neutral
- W3C Standard
- As light or as heavy as you need
- Lots of tool support
Words of Wisdom
"This notion of a specific contract is crucial to COM and to component software in general. Without "ironclad" contracts, it would be impossible to interchange components."
Distinguish between the public interface of a module, which can change as long as it's a within-team usage, and the published interface, which must be immutable and adhere to the contract.
"reuse [is] undervalued and insufficiently rewarded by the sponsoring organizations."
"Services are grouped into coherent, contractual units called ''interfaces''."
"By focusing on the notion of a contract, the service perspective introduces an important distinction between the specification of a component (what it does) and its implementation and executable forms (how it does it). This distinction is fundamental to the management of dependencies between components and begins to address the important requirement to be able to replace a component with minimal impact on the consumer, often referred to as "plug-and-play". "
Create detailed, well-defined interfaces. Java supports the interface explicitly.
Design-by-contract
When evolving the Component API from release to release, do not break existing Clients. API changes must not invalidate formerly legal client code.
Prevention steps for clients (callers)
- Make method preconditions as strong as possible
- Make method postconditions as weak as possible.
- Ensure correct field invariants.
- Settle on and do not change class/interface "gender"
- Prefer creating a new interface to changing an existing one, even if the change does not break compatibility.
- Define checked exception semantics carefully.
- Publish (outside the team) APIs parsimoniously.
Evolutionary Changes
- Deprecate and Forward
- Create a new package
- Any new methods that add/remove params, overload and call the old methods.
Communicating Changes
- Clarify how APIs work when the spec is imprecise
- Fix Broken Windows
- Fix '''only''' Broken Windows
- Note incompatible changes in the Release Notes
Component Infrastructure
- Packaging
- services-core jar file
- Physical delivery mechanism? Dev Library
- Version numbers on jar file or in manifest?
- Distribution
- Description of component
- Web site
- Browsable docs?
- What sort of UML Diagrams?
- What other StandUP artifacts, eg. Use Cases, should we have?
- Integrity
- Independent deliverable (high cohesion, low coupling)
- Document version dependences
Articles
- Building Systems from Pieces: Principles and Practice of Component-based Software Engineering by Alan W. Brown http://www.alanbrown.net/files/AWBChapter.zip
- Public versus Published Interfaces http://www.martinfowler.com/articles/published.pdf, by Martin Fowler
- Design By Contract http://archive.eiffel.com/doc/manuals/technology/contract/
Evolving Java APIs
- http://eclipse.org/eclipse/development/java-api-evolution.html
- http://java.sun.com/j2se/1.4.2/compatibility.html
- http://jakarta.apache.org/commons/versioning.html
Component Technologies
COM
- From CPP to COM http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncomg/html/msdn_cpptocom.asp?frame=false&hidetoc=true
- Dr GUI's Gentle Guide to COM http://www.microsoft.com/Com/news/drgui.asp
CORBA
- Introduction to CORBA http://developer.java.sun.com/developer/onlineTraining/corba/
EJB
XPCOM
- The Mozilla Project's XPCOM home http://www.mozilla.org/projects/xpcom/
permanent link