|
From: John L. <jl...@un...> - 2006-02-04 07:53:53
|
This should not be a problem. If a bean is declared as implementing PortletConfigAware or PortletContextAware, but is not loaded as part of an AbstractRefreshablePortletApplicationContext, then the setter methods simply won't be called. The PortletConfigAware and PortletContextAware interfaces are serviced by PortletContextAwareProcessor. BeanPostProcessors are only applied to the beans within their specific ApplicationContext -- not to beans in a parent ApplicationContext. If PortletContextAwareProcessor is applied to an ApplicationContext and beans implementing PortletConfigAware or PortletContextAware cannot be serviced properly, then an IllegalStateException will be thrown. John Boyce, Keith Garry wrote: > > Juergen please revisit SPR-1412. I added a comment with a possible > issue. Let us know if you think it's an issue. > > Garry > > |