Announcement Announcement Module
Collapse
No announcement yet.
Method Injection for bean collection Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Method Injection for bean collection

    Hi,

    Suppose, I have this context:

    Code:
    <bean name="modemManager" class="devman.modem.ModemManager">
    	<property name="adapters">
    		<list>
    			<bean class="devman.modem.adapter.HuaweiMT800Adapter"/>
    			...
    		</list>
    	</property>
    </bean>
    Is it possible to get new adapter instances on every this call:

    Code:
    for(IModemAdapter adapter : adapters) {
    	adapter.configure();
    }
    I read 3.3.8. Method Injection in Spring documentation, but I can't understand how to get new instances even with devman.modem.ModemManager implements BeanFactoryAware

    Is it possible?
Working...
X