Hi everybody,
I need some advice for my current problem. We are using the Spring RCP and a CommandGroupFactoryBean.
In this class we are able to set the property members, which holds a list of beans.
My question is, is it possible to find all beans, which f.e. are implementing an interface (f.e. exportCommand) and bind them automatically to this exportMenu?Code:<bean id="exportMenu" class="org.springframework.richclient.command.CommandGroupFactoryBean"> <property name="members"> <list> <ref bean="exportPDFCommand" /> <ref bean="exportXMLCommand" /> </list> </property> </bean>
The reason for this is: We have two different applications, and I want to wire all defined exportCommands automatically. With this, we do not have to define the menu in the two applications. Its just one definition, and the context will be searched for all available/defined commands.
Any idea?
Cheers,
Fritz


Reply With Quote