Populating Spring Bean Instance

Discussions

General J2EE: Populating Spring Bean Instance

  1. Populating Spring Bean Instance (1 messages)

    Hi, I am new to Spring and evaluating to use Spring in the current project. I have following doubt. Can anyone please help me. We are developing a system which will receive XML based message from third party systems. Based on the type of message (SMS/FAX/EMAIL/PRINTER etc), we will pickup the appropriate 'Rendering' class. This will be done from Main service class. My all renderer class will implement one common interface. Now my XML file will look like following ... Now as I understand above one is fine when I know that I am going to use only one of the renderer always. But in my case this will differ. Please suggest how to implement this in Spring. Thanks in advance. Best Regards - SR
  2. Spring Collection Support[ Go to top ]

    You can popluate your bean in a map and depending upon your requirement it will result appropriate bean. Hope it will work :)