47
rated 0 times
[
51]
[
4]
/ answers: 1 / hits: 32450
/ 13 Years ago, sat, april 9, 2011, 12:00:00
Let's say I am writing code at the main page level and 2 dependencies require the same instance of an object and also state that as a dependency. What is the appropriate way to go about this?
Basically what I want to do is say, If this dependency isn't loaded... then load it. Otherwise, use the same instance that was already loaded and just pass that one.
More From » singleton