Book a Demo

Author Topic: Singleton classes and code generation  (Read 4286 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Singleton classes and code generation
« on: August 26, 2009, 05:12:40 am »
When I tell EA that a class is a singleton (by selecting the "singleton" stereotype), then generate code, I would have thought the code generated would look like a singleton class; instead it looks just like any other generic class.

I'm still using EA 7.1 build 833... is this something that's fixed in 7.5?

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Singleton classes and code generation
« Reply #1 on: August 27, 2009, 10:13:05 am »
EA doesn't know anything about the «singleton» stereotype; nor does UML. There are a number of ways to implement singletons - you will need to communicate your chosen strategy in your design.
The Sparx Team
[email protected]