[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] Dependency Injection?


Hey folks -- 

I apologize in advance for asking a tenuously related CGI::App question.


My CA app extends my own framework class which creates a Configuration
object and has methods to get to it, then it calls actions which can get
to the configuration. Fine.

But I have created another object "SearchEngine". When I instantiate
that in my action... it knows nothing of the Configuration
object/methods.

So this brings up the question: what's a best practice for passing
around Configuration duties to biz objects like this?

Thanks,
Tim

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.