|
From: Bing R. <br...@cc...> - 2005-09-21 12:08:08
|
Thanks Steve. Unfortunately the way that the = PropertyPlaceHolderBeanfactory Works does not meet my need. What I'd like to have is a repeatable interpretation of an injected value each time the bean (a prototype) is created, rather than the one-time post-processing. What I'm doing is actually part of my effort to replace the bean management facility of = JSF with what I'm doing on top of Spring (see http://jacn.sf.net). I need = the ability to re-evaluate a JSF value-binding expression such as #{param.user_name}, which binds to a parameter in the http request, = which of course is different every time a new request comes in.=20 Any insight into this? Bing=20 -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: = spr...@li... [mailto:spr...@li...] = =B4=FA=B1=ED Steven Devijver =B7=A2=CB=CD=CA=B1=BC=E4: 2005=C4=EA9=D4=C221=C8=D5 17:47 =CA=D5=BC=FE=C8=CB: spr...@li... =D6=F7=CC=E2: Re: [Springframework-developer] customized BeanFactory Bing, You can implement a BeanFactoryPostProcessor to do that. Have a look =20 at the code of PropertyPlaceholderConfigurer. This class inspects =20 bean definitions and replaces ${key} with property values loaded from =20 property files. BeanFactoryPostProcessors are recognized by the bean =20 factory and applied automatically. Steven Devijver Senior consultant @ Interface21 ste...@in... On 21 Sep 2005, at 04:20, Bing Ran wrote: > I'm implementing my own BeanFactory as a subclass of > DefaultListableBeanFactory. What I want to do is to reinterpret =20 > injected > values on a bean, such as the <value>#{param.userName}</value> part =20 > in the > bean definition: > > <bean ...> > <property name=3D"a"> <value>#{param.userName}</value></property> > </bean> > > I'd like to set the value from another source (such as in JSF =20 > context) at > the time the bean is instantiated. Any tips how my code can get a =20 > chance to > re-interpret the dependency? > > Thanks! > > Bing Ran > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. =20 > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. = Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |