Build Rich Internet Applications that Run Outside the Browser

Adobe AIR on Ulitzer

Subscribe to Adobe AIR on Ulitzer: eMailAlertsEmail Alerts newslettersWeekly Newsletters
Get Adobe AIR on Ulitzer: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Adobe AIR Authors: Yeshim Deniz, Yakov Fain, David Weinberger, Maureen O'Gara, Tad Anderson

Related Topics: RIA Developer's Journal, Adobe AIR on Ulitzer

Article

A Singleton That Flex Developers Must Know About

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.

Don’t create new singletons – just use what you already have.

More Stories By Yakov Fain

Yakov Fain is a Java Champion and a co-founder of the IT consultancy Farata Systems and the product company SuranceBay. He wrote a thousand blogs (http://yakovfain.com) and several books about software development. Yakov authored and co-authored such books as "Angular 2 Development with TypeScript", "Java 24-Hour Trainer", and "Enterprise Web Development". His Twitter tag is @yfain

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.