[ 
https://issues.apache.org/struts/browse/WW-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45342#action_45342
 ] 

Adam Ruggles commented on WW-2898:
----------------------------------

I only noticed this as a problem, when using the guice plugin and adding an 
xwork-conversion.properties file.  Basically I'm defining a custom guice module 
in the struts.xml file.  Now when I add the xwork-conversion.properties the 
loading occurs before my guice module has been set and passed to guice to be 
created.  This causes my dependencies not to be injected.  I've seen this 
reported on the mailing list by other users but no one logged a bug on it.

My current work around is to create my own ObjectFactory and bypass the 
struts/xwork injection.

> 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.3
>
>
> 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.

Reply via email to