Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring bean property

 
jacob deiter
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In spring application context file,how to get value of bean property and assign it to other bean's property

class a {
Int j;
}

class b{

int k;
}
[ July 29, 2008: Message edited by: jacob deiter ]
 
Sergey Chunayev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if it's possible. Spring allows you to inject values into your bean at the time of creation of this bean. But you can not get or read values of bean's properties there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic