You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Natia Gdzelishvili <ng...@gmail.com> on 2008/09/02 11:08:53 UTC
inject services into dispatcher
hello,
i have service BusinessServicesLocator, and AccessController dispatcher.
I want to inject my service unto dispatcher how can i do this?
and also i want to know how can i access application state object from
dispatcher
thank in advance
Re: inject services into dispatcher
Posted by Martijn Brinkers <ma...@gmail.com>.
Take a look at
http://wiki.apache.org/tapestry/Tapestry5PreventClientSideChanges. It's
not specifically about a dispatcher but I think the principles are
similar to what you need.
Martijn
On Tue, 2008-09-02 at 13:08 +0400, Natia Gdzelishvili wrote:
> hello,
> i have service BusinessServicesLocator, and AccessController dispatcher.
> I want to inject my service unto dispatcher how can i do this?
> and also i want to know how can i access application state object from
> dispatcher
> thank in advance
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: inject services into dispatcher
Posted by Natia Gdzelishvili <ng...@gmail.com>.
Thank you Cris
On Tue, Sep 2, 2008 at 4:28 PM, Chris Lewis <ch...@bellsouth.net>wrote:
> Natia,
>
> Those articles talk precisely about how to get a inject a service
> (ApplicationStateManager) into another service (AccessController), and
> then how to use that ApplicationStateManager to check ASOs for the
> current user request. Essentially you must instantiate your service with
> the other service as a constructor argument, or via setter injection in
> a service builder method.
>
> chris
>
> Natia Gdzelishvili wrote:
> > i have read this but, from there i understand how can i use aso, but how
> can
> > i inject services?
> >
> > On Tue, Sep 2, 2008 at 3:12 PM, Chris Lewis <chris_lewis@bellsouth.net
> >wrote:
> >
> >
> >> Hello,
> >>
> >> I assume you haven't yet read these articles:
> >>
> >> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
> >> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
> >>
> >> They answer both of these questions.
> >>
> >> sinerely,
> >> chris
> >>
> >> Natia Gdzelishvili wrote:
> >>
> >>> hello,
> >>> i have service BusinessServicesLocator, and AccessController
> dispatcher.
> >>> I want to inject my service unto dispatcher how can i do this?
> >>> and also i want to know how can i access application state object from
> >>> dispatcher
> >>> thank in advance
> >>>
> >>>
> >>>
> >> --
> >> http://thegodcode.net
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >
> >
>
> --
> http://thegodcode.net
>
>
Re: inject services into dispatcher
Posted by Chris Lewis <ch...@bellsouth.net>.
Natia,
Those articles talk precisely about how to get a inject a service
(ApplicationStateManager) into another service (AccessController), and
then how to use that ApplicationStateManager to check ASOs for the
current user request. Essentially you must instantiate your service with
the other service as a constructor argument, or via setter injection in
a service builder method.
chris
Natia Gdzelishvili wrote:
> i have read this but, from there i understand how can i use aso, but how can
> i inject services?
>
> On Tue, Sep 2, 2008 at 3:12 PM, Chris Lewis <ch...@bellsouth.net>wrote:
>
>
>> Hello,
>>
>> I assume you haven't yet read these articles:
>>
>> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
>> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
>>
>> They answer both of these questions.
>>
>> sinerely,
>> chris
>>
>> Natia Gdzelishvili wrote:
>>
>>> hello,
>>> i have service BusinessServicesLocator, and AccessController dispatcher.
>>> I want to inject my service unto dispatcher how can i do this?
>>> and also i want to know how can i access application state object from
>>> dispatcher
>>> thank in advance
>>>
>>>
>>>
>> --
>> http://thegodcode.net
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
>
--
http://thegodcode.net
Re: inject services into dispatcher
Posted by Natia Gdzelishvili <ng...@gmail.com>.
i have read this but, from there i understand how can i use aso, but how can
i inject services?
On Tue, Sep 2, 2008 at 3:12 PM, Chris Lewis <ch...@bellsouth.net>wrote:
> Hello,
>
> I assume you haven't yet read these articles:
>
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
> http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
>
> They answer both of these questions.
>
> sinerely,
> chris
>
> Natia Gdzelishvili wrote:
> > hello,
> > i have service BusinessServicesLocator, and AccessController dispatcher.
> > I want to inject my service unto dispatcher how can i do this?
> > and also i want to know how can i access application state object from
> > dispatcher
> > thank in advance
> >
> >
>
> --
> http://thegodcode.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: inject services into dispatcher
Posted by Chris Lewis <ch...@bellsouth.net>.
Hello,
I assume you haven't yet read these articles:
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2
They answer both of these questions.
sinerely,
chris
Natia Gdzelishvili wrote:
> hello,
> i have service BusinessServicesLocator, and AccessController dispatcher.
> I want to inject my service unto dispatcher how can i do this?
> and also i want to know how can i access application state object from
> dispatcher
> thank in advance
>
>
--
http://thegodcode.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org