This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

How to link method's return value to hashmap's value?Page Title Module

Comment

If my understanding is right, this would mean that I have to write a factory method which would set the map values from the bean getter methods explicitly.

I am looking for a map which gets created on the fly from a bean instance in the container. The config file will link the key to the method names of the bean, so that there is no Java code written to link them.

If I misinterpreted the links that you have provided, please help me by giving an example.

I am looking for a map which gets created on the fly from a bean instance in the container. The config file will link the key to the method names of the bean, so that there is no Java code written to link them.

I don't know if the above already matches it. I don't get it completely.

Comment

However, I noticed that if the value of the getter method (factory method) is null, an excpetion is thrown saying that null cannot be used to instaniate the value. This shouldn't be a problem anyway. Just thought of pointing it out.
Thanks again.