LoL, I've just discovered that there is already cdi plugin in sandbox :D
https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-cdi-plugin/

And it was Rene idea ;-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/


2011/4/29 Lukasz Lenart <lukasz.len...@googlemail.com>:
> Hi,
>
> I was thinking a bit about that, how to add CDI support for Struts 2.
> And my idea is to create a struts2-cdi-plugin in the same way as the
> struts2-spring-plugin, so the CDI support can be optionally included
> by a user. But CDI's Inject annotation can be messed up with existing
> Inject annotation in Struts2.
>
> So to solve that I can rename the existing @Inject into @StrutsInject
> - this will show even more clearly what it's for ;-)
>
> Or the second option is to drop support for Java 5 and use the CDI
> instead of Struts 2 internal DI mechanism (pre-Guice ?)
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
> Warszawa JUG conference - Confitura http://confitura.pl/
>
>
> 2011/4/29 Steven Benitez (JIRA) <j...@apache.org>:
>>
>>    [ 
>> https://issues.apache.org/jira/browse/WW-3474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026783#comment-13026783
>>  ]
>>
>> Steven Benitez commented on WW-3474:
>> ------------------------------------
>>
>> Duplicate of WW-3473
>>
>>> JSR 330, javax.inject implementation in Struts2
>>> -----------------------------------------------
>>>
>>>                 Key: WW-3474
>>>                 URL: https://issues.apache.org/jira/browse/WW-3474
>>>             Project: Struts 2
>>>          Issue Type: Improvement
>>>          Components: Core Actions
>>>            Reporter: Frans Thamura
>>>            Priority: Critical
>>>             Fix For: 2.2.x
>>>
>>>
>>> There is Java CDI, and to become the most open platform, I think Struts2 
>>> will become more cool if have option to implement IoC using JSR 330
>>> reference code can use this.
>>> http://code.google.com/p/atinject/
>>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to