Re: When to use InjectorHolder

2010-05-03 Thread Douglas Ferguson
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 <
> doug...@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 <
>>> doug...@douglasferguson.us> wrote:
>>> 
 Do I need to use InjectorHolder when using @Inject in a model?
 
 
 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 


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



Re: When to use InjectorHolder

2010-05-03 Thread Jeremy Thomerson
Yes - it should - I think :)

--
Jeremy Thomerson
http://www.wickettraining.com



On Mon, May 3, 2010 at 10:27 PM, Douglas Ferguson <
doug...@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 <
> > doug...@douglasferguson.us> wrote:
> >
> >> Do I need to use InjectorHolder when using @Inject in a model?
> >>
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: When to use InjectorHolder

2010-05-03 Thread Jeremy Thomerson
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  wrote:

> Do I need to use InjectorHolder when using @Inject in a model?
>
>
>


Re: When to use InjectorHolder

2010-05-03 Thread Douglas Ferguson
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 <
> doug...@douglasferguson.us> wrote:
> 
>> Do I need to use InjectorHolder when using @Inject in a model?
>> 
>> 
>> 


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



Re: When to use InjectorHolder

2010-05-03 Thread Ryan Gravener
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 <
doug...@douglasferguson.us> wrote:

> Do I need to use InjectorHolder when using @Inject in a model?
>
>
>


When to use InjectorHolder

2010-05-03 Thread Douglas Ferguson
Do I need to use InjectorHolder when using @Inject in a model?