J
jmls
Guest
thanks for the link - what i still don't "get" is this ... if my class contains this code using Progress.Lang.*. block-level on error undo, throw. class HomeController: def var _service as IExampleService no-undo. constructor HomeController(serviceFactory as IServiceFactory): _service = serviceFactory; end constructor. method public void Index(): _service:GetSomething(). end method. end class. then at some point the object calling HomeController needs to know the instance of serviceFactory is this passed into the calling object to pass to HomeController ? If so, at what point do you stop - should the initial entry point to the application know about *every* class in the system ? How does this class know that class C (called from class B, called from class A, called from this root) needs a foobar widget ? is the servicefactory instance created by the calling object ? If so, isn;t that closely binding the two objects together ? (calling object and the service factory) what if I need to use several objects in HomeController ? Should they be passed as several factory parameters to the constructor - or one factory ? are we missing a proper DI framework in progress ?
Continue reading...
Continue reading...