<?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"
	>
<channel>
	<title>Comments on: Spring 2.5&#8217;s Unintrusive Annotation-based Configuration</title>
	<atom:link href="http://www.digizenstudio.com/blog/2007/11/14/spring-25s-unintrusive-annotation-based-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digizenstudio.com/blog/2007/11/14/spring-25s-unintrusive-annotation-based-configuration/</link>
	<description>Jing Xue's Weblog</description>
	<pubDate>Sat, 11 Oct 2008 16:59:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Jing Xue</title>
		<link>http://www.digizenstudio.com/blog/2007/11/14/spring-25s-unintrusive-annotation-based-configuration/#comment-55652</link>
		<dc:creator>Jing Xue</dc:creator>
		<pubDate>Fri, 16 Nov 2007 05:34:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/11/14/spring-25s-unintrusive-annotation-based-configuration/#comment-55652</guid>
		<description>Mark,

Neat meta-annotation. I completely forgot you could do that. Copying the annotations did look rather silly... :-)

The exclude/include filters were actually taken from the 2.5 RC1 reference. I guess I need to keep an eye on how it evolves.

Thanks!
-- 
Jing</description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>Neat meta-annotation. I completely forgot you could do that. Copying the annotations did look rather silly&#8230; <img src='http://www.digizenstudio.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The exclude/include filters were actually taken from the 2.5 RC1 reference. I guess I need to keep an eye on how it evolves.</p>
<p>Thanks!<br />
&#8211;<br />
Jing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Fisher</title>
		<link>http://www.digizenstudio.com/blog/2007/11/14/spring-25s-unintrusive-annotation-based-configuration/#comment-55513</link>
		<dc:creator>Mark Fisher</dc:creator>
		<pubDate>Thu, 15 Nov 2007 17:58:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.digizenstudio.com/blog/2007/11/14/spring-25s-unintrusive-annotation-based-configuration/#comment-55513</guid>
		<description>Jing,

Another option for applying custom annotations is to use Spring's @Component as a meta-annotation. In other words:

@Component
public @interface SomeCustomAnnotation

That is still non-invasive as far as the actual annotated components are concerned:

@SomeCustomAnnotation
public class Whatever { ... }

Obviously it requires a Spring-specific import in the custom annotation definition, but it does simplify configuration (it is no longer necessary to provide the 'include-filter' within the 'component-scan' element). I also wanted to point out that the 'component-scan' element has an attribute for disabling all default filters so that it is not necessary to provide that 'exclude-filter' either:  use-default-filters="false".

Mark</description>
		<content:encoded><![CDATA[<p>Jing,</p>
<p>Another option for applying custom annotations is to use Spring&#8217;s @Component as a meta-annotation. In other words:</p>
<p>@Component<br />
public @interface SomeCustomAnnotation</p>
<p>That is still non-invasive as far as the actual annotated components are concerned:</p>
<p>@SomeCustomAnnotation<br />
public class Whatever { &#8230; }</p>
<p>Obviously it requires a Spring-specific import in the custom annotation definition, but it does simplify configuration (it is no longer necessary to provide the &#8216;include-filter&#8217; within the &#8216;component-scan&#8217; element). I also wanted to point out that the &#8216;component-scan&#8217; element has an attribute for disabling all default filters so that it is not necessary to provide that &#8216;exclude-filter&#8217; either:  use-default-filters=&#8221;false&#8221;.</p>
<p>Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>
