ObjectFactory PostProcessor runs too late in the sequence
---------------------------------------------------------
Key: STS-667
URL: http://www.stripesframework.org/jira/browse/STS-667
Project: Stripes
Issue Type: Bug
Components: Context Management
Reporter: Frederic Daoud
Fix For: Release 1.6
I have a custom class that implements LocalizationBundleFactory and that wants
to be injected with dependencies via @SpringBean. The stripes.integration
package is configured in web.xml so that the Spring PostProcessor is used. When
my class is auto-loaded, it looks like the Spring PostProcessor has not yet
been discovered and loaded. The object factory's list of post processors is
empty and the class's dependencies are not injected.
I do see that the Spring PostProcessor is loaded correctly; it does its job on
Action Beans and my custom ActionBeanContext class, for example.
It looks like the auto-discovery and auto-loading sequence has a "chariot
before the horses" problem. I haven't had the chance to test with other Stripes
auto-loaded classes, but it may well be the case that custom TypeConverters and
so on that want to take advantage of Spring DI also have this problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development