spring - Inject bean map into Grails Service -


a spring bean can injected in grails application using resources.groovy. however, inject map of beans. key string, value actual bean. idea trying strategy style pattern there map , corresponding bean service invoked?

is possible - thanks.

i had similar issue, wanted inject list of beans. example works:

bean1(bean1) {}  bean2(bean2) {}  beansholder (beansholder ) {     beans = [bean1, bean2] } 

i think can same map:

    beans = ['first': bean1, 'second': bean2] 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -