| By Yakov Fain | Article Rating: |
|
| August 5, 2009 01:38 PM EDT | Reads: |
330 |
Don’t create new singletons – just use what you already have.
Each real-world software developer knows at least one design pattern – Singleton. Flex has some specifics in implementing Singletons due to lack of private constructors in ActionScript, but the goal of this little writeup is not to show you how to implement Singleton, but rather to discourage you from doing this because each Flex application already has a singleton – just use it.
I’ve recorded an eight-minute video that will shows how you can use the Application object as your one and only singleton when needed. See if you can answer the question that I asked at the end of the video.
This is one of many tricks and techniques that consultants from Farata Systems use while working on enterprise Flex projects, and we’ll continue to share them with you in the form of such mini demos as well as in one of our public seminars like the one on August 7 in New York City or on September 24-25 in London, UK.
Read the original blog entry...
Published August 5, 2009 Reads 330
Copyright © 2009 Ulitzer, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Yakov Fain
Yakov Fain is a Managing Director of Farata Systems, consulting, training and product company. He has authored several Java books, dozens of technical articles. SYS-CON Books released his latest co-authored book , Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters in Spring 2007. Sun Microsystems has nominated and awarded Yakov with the title Java Champion. He leads the Princeton Java Users Group. He is an Adobe Certified Flex Instructor. Yakov co-athored the O'Reilly book "Enterprise Application Development with Flex". He twits at twitter.com/yfain.
- Rich Internet Applications with Adobe Flex 2 and Java
- Adobe Flex 2: Advanced DataGrid
- Rich Internet Applications - State of the Union
- Comparing the syntax of Java 5 and ActionScript 3
- A Complete Application with RPC Communications...
- Turning Your Adobe Flex/Java Application Into a RAD Project
- Working with Large Applications
- Our Flex Book Is Written!
- Business Intelligence in the world of Rich Internet Applications
- Closures in ActionScript 3
- Creating PDF Documents from Flex Applications
- ClearBI Web Reporter For Flex and Java Applications Goes to Public Beta





























Ulitzer content is offered under Creative Commons "Attribution Non-Commercial No Derivatives" License.
For any reuse or distribution, you must make clear to others the license terms of this work.
The best way to do this is with a link to this web page.
Any of the above conditions can be waived if you get written permission from Ulitzer, Inc., the copyright holder.
Nothing in this license impairs or restricts the author's moral rights.