java - Injecting BeanFactory into a Bean -


i want inject spring beanfactory bean created same beanfactory way so?

by way, i'm developing web application. if not know can beanfactory having requestcontext bean want inject beanfactory not in requestcontext still in application context. can that?

your bean can implement beanfactoryaware. implementing interface, bean receive beanfactory through call method:

void setbeanfactory(beanfactory beanfactory) throws beansexception 

by way, there similar interface (applicationcontextaware) in order retrieve applicationcontext if need to.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -