Hi!

I already searched on google and in forums, but i couldn't find any informations about it.
I need to set the bean id on a field on the bean itsself.
My (dummy) code:

Code:
public class MyConfigEntry
{
    private String name;
    private String startCommand;
    /*getter, setter*/
}

<beans>
	<bean id="firstCommand" class="MyConfigEntry">
            <property name="name" value="firstCommand" />
            <property name="startCommand" value="anyCommand" />
	</bean>
	<bean id="secondCommand" class="MyConfigEntry">
            <property name="name" value="secondCommand" />
            <property name="startCommand" value="anyCommand" />
	</bean>
</beans>
as you see i always have to write bean id and name property of MyConfigEntry twice. Is there any possibility to get the bean id into property "name"?

i use spring 2.5.6 with jdk 1.6.0_23

yours sincerly Phylanx