0 Replies Latest reply on Jun 25, 2010 2:04 AM by nikos101

    singleton to hold data centric services generated by FB

    nikos101 Level 2

      Using the new data centric features in fb I generate a bunch of services.

       

      Since I use the same services in various components I would like to keep them set up in a seperate global object so that I don't need to instantiate them in each component:

       

      I'm using the singleton to hold global data and could put my services in there or include an object in the singleton where I instantiate my services like this:

       

       

      <retail:Retail id="retail" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>

       

      Once works I think I will try and go with a framework like robotlegs

       

      Do you recommend all this faithful friends?