You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2010/05/04 04:58:21 UTC
When to use InjectorHolder
Do I need to use InjectorHolder when using @Inject in a model?
Re: When to use InjectorHolder
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Yes - on anything that does not extend Component you will need to inject
manually. Components are injected automagically by adding the component
instantiation listener (which is called from Component's constructor).
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, May 3, 2010 at 9:58 PM, Douglas Ferguson <douglas@douglasferguson.us
> wrote:
> Do I need to use InjectorHolder when using @Inject in a model?
>
>
>
Re: When to use InjectorHolder
Posted by Douglas Ferguson <do...@douglasferguson.us>.
Since the ConfigurableInjector doesn't implement the guice injector, how would I inject my mocks using my test module and the guice injector?
D/
On May 3, 2010, at 10:31 PM, Jeremy Thomerson wrote:
> Yes - it should - I think :)
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Mon, May 3, 2010 at 10:27 PM, Douglas Ferguson <
> douglas@douglasferguson.us> wrote:
>
>> I thought that it did working with 1.4.8
>>
>>
>> On May 3, 2010, at 10:07 PM, Ryan Gravener wrote:
>>
>>> Not sure wicket-guice works with injectorholder. If you are not
>> extending
>>> component, then you should pass the service to the constructor.
>>>
>>> Sent from my Incredible.
>>>
>>>
>>> On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson <
>>> douglas@douglasferguson.us> wrote:
>>>
>>>> Do I need to use InjectorHolder when using @Inject in a model?
>>>>
>>>>
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: When to use InjectorHolder
Posted by Jeremy Thomerson <je...@wickettraining.com>.
Yes - it should - I think :)
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, May 3, 2010 at 10:27 PM, Douglas Ferguson <
douglas@douglasferguson.us> wrote:
> I thought that it did working with 1.4.8
>
>
> On May 3, 2010, at 10:07 PM, Ryan Gravener wrote:
>
> > Not sure wicket-guice works with injectorholder. If you are not
> extending
> > component, then you should pass the service to the constructor.
> >
> > Sent from my Incredible.
> >
> >
> > On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson <
> > douglas@douglasferguson.us> wrote:
> >
> >> Do I need to use InjectorHolder when using @Inject in a model?
> >>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: When to use InjectorHolder
Posted by Douglas Ferguson <do...@douglasferguson.us>.
I thought that it did working with 1.4.8
On May 3, 2010, at 10:07 PM, Ryan Gravener wrote:
> Not sure wicket-guice works with injectorholder. If you are not extending
> component, then you should pass the service to the constructor.
>
> Sent from my Incredible.
>
>
> On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson <
> douglas@douglasferguson.us> wrote:
>
>> Do I need to use InjectorHolder when using @Inject in a model?
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: When to use InjectorHolder
Posted by Ryan Gravener <ry...@gmail.com>.
Not sure wicket-guice works with injectorholder. If you are not extending
component, then you should pass the service to the constructor.
Sent from my Incredible.
On Mon, May 3, 2010 at 10:58 PM, Douglas Ferguson <
douglas@douglasferguson.us> wrote:
> Do I need to use InjectorHolder when using @Inject in a model?
>
>
>