[jboss-user] [JBoss/Spring Integration] - Re: Is it possible to inject beanfactory?

alesj do-not-reply at jboss.com
Mon Sep 29 04:48:18 EDT 2008


What you can do is this 'trick':

Create a simple bean that implements BeanFactoryAware interface:
 - http://static.springframework.org/spring/docs/1.0.2/api/org/springframework/beans/factory/BeanFactoryAware.html

Then simply inject this bean via @Spring,
and use its BeanFactory. ;-)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179295#4179295

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179295



More information about the jboss-user mailing list