Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Property Placeholder for Bean ID

In Spring 3.1, is it possible to use a property placeholder to resolve the 'id' attribute of a bean?

I would like, for example, to do the following in my context.xml file:

<context:property-placeholder/>

<int:channel id="${channel.name}"/>
like image 406
Brandon E Taylor Avatar asked Nov 04 '22 21:11

Brandon E Taylor


1 Answers

No, not for the id and the name attributes - this is based on what I have seen of how PropertySourcesPlaceholderConfigurer resolves the placeholders.

like image 130
Biju Kunjummen Avatar answered Nov 15 '22 06:11

Biju Kunjummen