You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2009/03/17 16:31:02 UTC
[jira] Resolved: (WW-2898) Object Factory not injected before
buildBean call for type converters
[ https://issues.apache.org/struts/browse/WW-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2898.
---------------------------------
Resolution: Won't Fix
I don't think this can be fixed with the current design. The only workaround I can think of, is injecting the container instance into the object factory, and then do a lazy init of the desired properties inside the object factory when its methods are called.
> Object Factory not injected before buildBean call for type converters
> ---------------------------------------------------------------------
>
> Key: WW-2898
> URL: https://issues.apache.org/struts/browse/WW-2898
> Project: Struts 2
> Issue Type: Bug
> Components: Dispatch Filter
> Affects Versions: 2.1.2
> Environment: NA
> Reporter: Adam Ruggles
> Fix For: 2.1.7
>
>
> This specifically affects the Guice Plugin, but it will affect any ObjectFactory implementation that needs to be injected from the struts properties.
> When a Object Factory is created the buildBean will be called before any of the @Injector methods for type converters (xwork-conversion.properties). After the type converters have been built the properties are correctly injected and then the buildBeans are called on the remaining struts configuration beans.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.