You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alfonso Quiroga <al...@gmail.com> on 2009/11/24 18:01:32 UTC

injecting services in the module

Is it possible to inject a service in a module? I am *advising*
application methods... and I need to use a service. If I do:
        @Inject private GeneralService generalService;
in the module... it gets "null" when the advisor executes.. any
workaround? thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: injecting services in the module

Posted by Alfonso Quiroga <al...@gmail.com>.
Great idea :) thanks

On Tue, Nov 24, 2009 at 2:18 PM, Howard Lewis Ship <hl...@gmail.com> wrote:
> You can inject into your advise method simply by providing additional
> parameters on the advise method.
>
> On Tue, Nov 24, 2009 at 9:01 AM, Alfonso Quiroga <al...@gmail.com> wrote:
>> Is it possible to inject a service in a module? I am *advising*
>> application methods... and I need to use a service. If I do:
>>        @Inject private GeneralService generalService;
>> in the module... it gets "null" when the advisor executes.. any
>> workaround? thanks
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: injecting services in the module

Posted by Howard Lewis Ship <hl...@gmail.com>.
You can inject into your advise method simply by providing additional
parameters on the advise method.

On Tue, Nov 24, 2009 at 9:01 AM, Alfonso Quiroga <al...@gmail.com> wrote:
> Is it possible to inject a service in a module? I am *advising*
> application methods... and I need to use a service. If I do:
>        @Inject private GeneralService generalService;
> in the module... it gets "null" when the advisor executes.. any
> workaround? thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org