You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Guðmundur Bjarni Ólafsson (JIRA)" <ji...@apache.org> on 2008/04/24 23:27:22 UTC

[jira] Commented: (WICKET-1143) Modify InjectorHolder to allow for storage of multiple types of Injectors (for Guice support)

    [ https://issues.apache.org/jira/browse/WICKET-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592173#action_12592173 ] 

Guðmundur Bjarni Ólafsson commented on WICKET-1143:
---------------------------------------------------

Rather than exposing multiple injectors via the InjectorHolder, this could be solved by chaining the Injectors behind the Holder. That way when you call InjectorHolder.getInjector.inject(object), it would iterate through each injector it knows about and perform the injection. The order of the injectors could be the order in which they are added as instantiation listeners to the application. 

By solving this issue in that way, then in most cases we wouldn't break any existing apps, help people who are migrating from Injection framework A to B and allow Guice to be pulled out via the InjectorHolder.

> Modify InjectorHolder to allow for storage of multiple types of Injectors (for Guice support)
> ---------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1143
>                 URL: https://issues.apache.org/jira/browse/WICKET-1143
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket, wicket-guice
>    Affects Versions: 1.3.0-beta4
>            Reporter: Peter Mularien
>            Assignee: Alastair Maw
>
> As per discussion on the mailing list:
> http://www.nabble.com/Question-about-Guice-integration-with-Wicket-1.3-beta-4-tf4778901.html#a13672025
> InjectorHolder should play nicely with GuiceComponentInjector, and allow for mixed systems using both Spring and Guice. Thanks!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.