How to create Singleton Objects with ports in Rational Rhapsody
How do you create Singleton Objects in IBM Rational Rhapsody ?
You want to restrict the instantiation of a class to just one object which contains a port.
- Create class in the project
- Apply the stereotype Singleton on it
- Add a port to the class
- Make an object (Right click on class > Make an Object)
- Generate code
More support for:
Software version: 18.104.22.168, 22.214.171.124, 126.96.36.199, 8.0, 8.0.1, 8.0.2
Operating system(s): Linux, Windows
Reference #: 1633263
Modified date: 19 April 2013