How are get and set methods on javabeans called by frameworks?
Posted
by testymctesttesttest
on Stack Overflow
See other posts from Stack Overflow
or by testymctesttesttest
Published on 2010-06-06T18:08:38Z
Indexed on
2010/06/06
18:12 UTC
Read the original article
Hit count: 247
javabeans
If you have a bean with a getFoo method, how does whatever framework you're using know how to call the getFoo method when you ask for the value of foo? Is this done using the reflection API? Or is it somehow done using annotations? Obviously I know how you can derive the method given the name of the property, I just don't know how the method is invoked.
© Stack Overflow or respective owner