Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: EricP on August 26, 2009, 05:12:40 am

Title: Singleton classes and code generation
Post by: EricP 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?
Title: Re: Singleton classes and code generation
Post by: KP 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.