<div dir="ltr"><div><div>Starting a new thread.<br><br><br>2015-01-05 15:16 GMT-03:00 silvioprog <span dir="ltr"><<a href="mailto:silvioprog@gmail.com" target="_blank">silvioprog@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><span class=""><div class="gmail_quote">On Mon, Jan 5, 2015 at 12:54 PM, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl" target="_blank">marcov@stack.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
As a first step in the 3.0.0 release process the stable branch was branched<br>
off to branches/fixes_3_0 and the version number was updated to 3.0.1<br>
<br>
The version in trunk was raised to 3.1.1<br>
<br>
Scripts might need modification accordingly.</blockquote></div><div><br></div></span><div>Good news!</div><div><br></div><div>Chances of custom attributes[1] (or something like this) in release 3.0? I have plans to use IoC[2] and DI using this feature.</div><div><br></div></div></div></blockquote><div> </div>I created a IoC Container that can be found at <a href="https://code.google.com/p/luipack/source/browse/trunk/luicomponents/luiioccontainer.pas">https://code.google.com/p/luipack/source/browse/trunk/luicomponents/luiioccontainer.pas</a> . It has no dependencies.<br><br></div>With it is possible to implement Service Locator and Property Injection patterns. Constructor Injection is not possible due to lacking of Extended RTTI support in fpc.<br><br></div><div>While the C# crowd praises the Constructor Injection pattern ( <a href="http://www.devtrends.co.uk/blog/how-not-to-do-dependency-injection-the-static-or-singleton-container">http://www.devtrends.co.uk/blog/how-not-to-do-dependency-injection-the-static-or-singleton-container</a> ), i had hard times figuring how it would work in real world / Lazarus projects. Also, polluting the constructor signature is not something that i like. And finally with Constructor Injection is not possible to use with TComponent / TForm<br><br>So in the end, i use the service locator and have plans to use Property Injection pattern<br><br></div><div>BTW: Custom Attributes support would help to have a nicer Property Injection implementation<br></div><div><br></div><div>Luiz<br></div><div><br></div><br></div>