<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Arbitrary runtime constructor dependencies in Lightwire</title>
	<atom:link href="http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 25 Oct 2011 02:34:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Thomas</title>
		<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/comment-page-1/#comment-50034</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 29 Mar 2010 23:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.epiphantastic.com/?p=27#comment-50034</guid>
		<description>@Dave, thanks for the feedback. Doesn&#039;t seem like a ton of people are using Lightwire in the first place based on the amount of feedback. Even the AOP stuff I did got pretty much zero response, and it&#039;s a lot more significant than this. This was just a nice to have. So without more interest, it won&#039;t make it into the main codebase, which isn&#039;t really a big deal. Like you said, having a configure() or populate() method isn&#039;t that huge of a deal, especially since there would probably be limited cases.</description>
		<content:encoded><![CDATA[<p>@Dave, thanks for the feedback. Doesn&#8217;t seem like a ton of people are using Lightwire in the first place based on the amount of feedback. Even the AOP stuff I did got pretty much zero response, and it&#8217;s a lot more significant than this. This was just a nice to have. So without more interest, it won&#8217;t make it into the main codebase, which isn&#8217;t really a big deal. Like you said, having a configure() or populate() method isn&#8217;t that huge of a deal, especially since there would probably be limited cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Merrill</title>
		<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/comment-page-1/#comment-50033</link>
		<dc:creator>Dave Merrill</dc:creator>
		<pubDate>Mon, 29 Mar 2010 23:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.epiphantastic.com/?p=27#comment-50033</guid>
		<description>Eh, code bits didn&#039;t come through. Just a method to return arguments -- pass in name args, get out a struct with the passed values in the passed fields.

d</description>
		<content:encoded><![CDATA[<p>Eh, code bits didn&#8217;t come through. Just a method to return arguments &#8212; pass in name args, get out a struct with the passed values in the passed fields.</p>
<p>d</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Merrill</title>
		<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/comment-page-1/#comment-50032</link>
		<dc:creator>Dave Merrill</dc:creator>
		<pubDate>Mon, 29 Mar 2010 23:35:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.epiphantastic.com/?p=27#comment-50032</guid>
		<description>Kind of a side issue, but for building a struct concisely pre the native language construct, many folks use something like this:


   


I&#039;m not such a fan of ordered args, at least more than about two. Named args are self-documenting, worth the typing IMO.

On your main idea, I&#039;m not sure I see a big advantage to having a method in the bean factory to set a bunch of dynamic properties at once, vs having it in the objects themselves. A generic populateFields method in a base class feels more appropriate than moving it out to the bean factory. DI seems more about app structure and object relationships, where injecting dynamic values like more of an object-specific convenience.

OTOH, it doesn&#039;t hurt to have it if it can be done cleanly, so if it floats other folks&#039; boat, I say go for it.

My $.000002...</description>
		<content:encoded><![CDATA[<p>Kind of a side issue, but for building a struct concisely pre the native language construct, many folks use something like this:</p>
<p>I&#8217;m not such a fan of ordered args, at least more than about two. Named args are self-documenting, worth the typing IMO.</p>
<p>On your main idea, I&#8217;m not sure I see a big advantage to having a method in the bean factory to set a bunch of dynamic properties at once, vs having it in the objects themselves. A generic populateFields method in a base class feels more appropriate than moving it out to the bean factory. DI seems more about app structure and object relationships, where injecting dynamic values like more of an object-specific convenience.</p>
<p>OTOH, it doesn&#8217;t hurt to have it if it can be done cleanly, so if it floats other folks&#8217; boat, I say go for it.</p>
<p>My $.000002&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/comment-page-1/#comment-49690</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 08 Mar 2010 20:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.epiphantastic.com/?p=27#comment-49690</guid>
		<description>Yeah, the downside to a populate argument is that for people not running CF 8 they would have to create a collection first, so that means doing structNew(), assigning a bunch of keys, etc., which would get verbose and kind of defeat the purpose.</description>
		<content:encoded><![CDATA[<p>Yeah, the downside to a populate argument is that for people not running CF 8 they would have to create a collection first, so that means doing structNew(), assigning a bunch of keys, etc., which would get verbose and kind of defeat the purpose.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrett Johnson</title>
		<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/comment-page-1/#comment-49688</link>
		<dc:creator>Garrett Johnson</dc:creator>
		<pubDate>Mon, 08 Mar 2010 19:20:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.epiphantastic.com/?p=27#comment-49688</guid>
		<description>Could be handy, maybe just have a second &quot;populate&quot; argument to the getBean method where you can pass in your collection?



The populate argument could just simply get iterated over and set whatever property matches the current key for that iteration...

Or are you wanting to be able to pass in N about of arguments for whatever reason?</description>
		<content:encoded><![CDATA[<p>Could be handy, maybe just have a second &#8220;populate&#8221; argument to the getBean method where you can pass in your collection?</p>
<p>The populate argument could just simply get iterated over and set whatever property matches the current key for that iteration&#8230;</p>
<p>Or are you wanting to be able to pass in N about of arguments for whatever reason?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Do you want to see this in LightWire? &#171; Application Generation</title>
		<link>http://www.epiphantastic.com/2010/03/06/arbitrary-runtime-constructor-dependencies-in-lightwire/comment-page-1/#comment-49687</link>
		<dc:creator>Do you want to see this in LightWire? &#171; Application Generation</dc:creator>
		<pubDate>Mon, 08 Mar 2010 17:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.epiphantastic.com/?p=27#comment-49687</guid>
		<description>[...] blogged about supporting &#8220;arbitrary runtime constructors&#8221; in LightWire. Check out his posting and comment at the bottom as to whether you like or dislike the idea. If it&#8217;s popular enough [...]</description>
		<content:encoded><![CDATA[<p>[...] blogged about supporting &#8220;arbitrary runtime constructors&#8221; in LightWire. Check out his posting and comment at the bottom as to whether you like or dislike the idea. If it&#8217;s popular enough [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

