<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 2/6/14 8:33 PM, Tom Zeller wrote:<br>
</div>
<blockquote
cite="mid:CAMNmQDRU0c9jTpGHT7D9GMg0BBUBtko74vuKzrj40YoNgQR3dg@mail.gmail.com"
type="cite">
<pre wrap="">I'll offer bike parts from my bike part bin if someone can figure out
how we can set an IdentifiableComponent's ID via Spring without
setting the 'id' property in addition to the 'id' attribute.</pre>
</blockquote>
<br>
I think that's done pretty easily automagically with a
BeanPostProcessor that does something like:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<tt>Object postProcessBeforeInitialization(Object bean, String
beanName) throws BeansException {</tt><tt><br>
</tt><tt> if (bean instanceof </tt><tt>IdentifiableComponent) {</tt><tt><br>
</tt><tt> ((IdentifiableComponent)bean).setID(beanName);</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt>}</tt><br>
<blockquote
cite="mid:CAMNmQDRU0c9jTpGHT7D9GMg0BBUBtko74vuKzrj40YoNgQR3dg@mail.gmail.com"
type="cite">
</blockquote>
<br>
</body>
</html>