<?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: A Couple ColdSpring AOP Gotchas</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-158713</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Mon, 26 Jan 2009 04:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-158713</guid>
		<description>I&#039;m not sure this is still an issue with the head releases.  I rarely use dynamic defaults, but even so, I don&#039;t recall running into this issue at any point in the recent past, which makes me think it might be addressed (possibly by attributeCollection?).  But to answer your question, no, I haven&#039;t dug into it at all.</description>
		<content:encoded><![CDATA[<p>I'm not sure this is still an issue with the head releases.  I rarely use dynamic defaults, but even so, I don't recall running into this issue at any point in the recent past, which makes me think it might be addressed (possibly by attributeCollection?).  But to answer your question, no, I haven't dug into it at all.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Nelson</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-158690</link>
		<dc:creator>Tony Nelson</dc:creator>
		<pubDate>Mon, 26 Jan 2009 02:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-158690</guid>
		<description>Aside from bringing this post back from the dead, have you found a way to use dynamic default variables in ColdSpring proxied methods? I&#039;ve been toying with the idea of parsing the CFC or somehow using the property&#039;s metadata to determine the literal string (&quot;#now()#&quot;) that could then be written into the ColdSpring generated functions, but haven&#039;t had much success yet. Just curious if you explored the idea or not.</description>
		<content:encoded><![CDATA[<p>Aside from bringing this post back from the dead, have you found a way to use dynamic default variables in ColdSpring proxied methods? I've been toying with the idea of parsing the CFC or somehow using the property's metadata to determine the literal string ("#now()#") that could then be written into the ColdSpring generated functions, but haven't had much success yet. Just curious if you explored the idea or not.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Corfield</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-455</link>
		<dc:creator>Sean Corfield</dc:creator>
		<pubDate>Sat, 21 Oct 2006 19:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-455</guid>
		<description>Heh, you&#039;re right... I&#039;m wrong... I could have sworn that used to be the case... maybe back in CFMX 6.1? But you&#039;re right that it only evaluates the default now if the argument is *not* passed in.
</description>
		<content:encoded><![CDATA[<p>Heh, you're right&#8230; I'm wrong&#8230; I could have sworn that used to be the case&#8230; maybe back in CFMX 6.1? But you're right that it only evaluates the default now if the argument is *not* passed in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-454</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Sat, 21 Oct 2006 14:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-454</guid>
		<description>Sean,

That&#039;s not behaviour I&#039;ve witnessed, though I haven&#039;t checked in a while.  What I discovered when I did test was that CFPARAM always evaluates the default attribute, but CFARGUMENT only evaluates it if it is needed.  I think I actually blogged about that at some point, now that I think about it.  So using a runtime default for CFARGUMENT is safe, but a runtime default for CFPARAM is not safe.</description>
		<content:encoded><![CDATA[<p>Sean,</p>
<p>That's not behaviour I've witnessed, though I haven't checked in a while.  What I discovered when I did test was that CFPARAM always evaluates the default attribute, but CFARGUMENT only evaluates it if it is needed.  I think I actually blogged about that at some point, now that I think about it.  So using a runtime default for CFARGUMENT is safe, but a runtime default for CFPARAM is not safe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barney</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-453</link>
		<dc:creator>Barney</dc:creator>
		<pubDate>Sat, 21 Oct 2006 14:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-453</guid>
		<description>Steve,

The aspect is basically just a CFTRANSACTION tag, so it&#039;ll work with anything you can use CFTRANSACTION with.  The only caveat (at the moment) is that you can only specify a single isolation level for your entire application.  I&#039;ve considered addressing that via CFFUNCTION metadata, but there&#039;s no assurance that the right method&#039;s metadata will be used, as nested/reentrant transactional method invocations don&#039;t start new transactions, and therefore don&#039;t dictate the isolation level.  So the isolation level is alway specified by the first transactional method encountered.</description>
		<content:encoded><![CDATA[<p>Steve,</p>
<p>The aspect is basically just a CFTRANSACTION tag, so it'll work with anything you can use CFTRANSACTION with.  The only caveat (at the moment) is that you can only specify a single isolation level for your entire application.  I've considered addressing that via CFFUNCTION metadata, but there's no assurance that the right method's metadata will be used, as nested/reentrant transactional method invocations don't start new transactions, and therefore don't dictate the isolation level.  So the isolation level is alway specified by the first transactional method encountered.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Corfield</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-452</link>
		<dc:creator>Sean Corfield</dc:creator>
		<pubDate>Sat, 21 Oct 2006 04:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-452</guid>
		<description>One caveat for defaults with dynamic values - are you aware that the default is *always* calculated even if the argument is passed? Using structKeyExists() inside the method is better practice, IMO.</description>
		<content:encoded><![CDATA[<p>One caveat for defaults with dynamic values &#8211; are you aware that the default is *always* calculated even if the argument is passed? Using structKeyExists() inside the method is better practice, IMO.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Scott</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-451</link>
		<dc:creator>Chris Scott</dc:creator>
		<pubDate>Fri, 20 Oct 2006 22:59:17 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-451</guid>
		<description>Hey Barney. The first issue with default values, yep, I have been running into the same issue with cfproperty tags for as conversion. Flaky at best. But I think I can definitely put some thought into this package issue. There&#039;s got to be something I can do to work through that one. Well there kind of is, but it could have negative repercussions... Glad to hear that you are using CS&#039;s aop with success for transaction management. That&#039;s just a great use case there and many people love using Spring&#039;s aop based transaction management in java.</description>
		<content:encoded><![CDATA[<p>Hey Barney. The first issue with default values, yep, I have been running into the same issue with cfproperty tags for as conversion. Flaky at best. But I think I can definitely put some thought into this package issue. There's got to be something I can do to work through that one. Well there kind of is, but it could have negative repercussions&#8230; Glad to hear that you are using CS's aop with success for transaction management. That's just a great use case there and many people love using Spring's aop based transaction management in java.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Bryant</title>
		<link>https://www.barneyb.com/barneyblog/2006/10/20/a-couple-coldspring-aop-gotchas/comment-page-1/#comment-450</link>
		<dc:creator>Steve Bryant</dc:creator>
		<pubDate>Fri, 20 Oct 2006 20:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://barneyb.com/barneyblog/?p=190#comment-450</guid>
		<description>Barney,

Is your transaction management specific to one database or can it be used on any database that supports transactions?</description>
		<content:encoded><![CDATA[<p>Barney,</p>
<p>Is your transaction management specific to one database or can it be used on any database that supports transactions?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
