sounds good - and yes it is great
On 5/5/06, James Carman <
james@carm...> wrote:
>
> Just provide a setter for it on your service implementation class and
> HiveMind will autowire it for you. Ain't dependency injection great!?!?!
>
> -----Original Message-----
> From: John Menke [mailto:
jmjava@gmai...]
> Sent: Friday, May 05, 2006 11:30 AM
> To: Tapestry users
> Subject: Re: Accessing state.ApplicationObject in ServicePoint
>
> thanks James :)
>
> how do i get a reference to this object in my Service?
>
>
> On 5/5/06, James Carman <
james@carm...> wrote:
> >
> > Look it up using the ApplicationStateManager.
> >
> > -----Original Message-----
> > From: John Menke [mailto:
jmjava@gmai...]
> > Sent: Friday, May 05, 2006 11:23 AM
> > To: Tapestry User
> > Subject: Accessing state.ApplicationObject in ServicePoint
> >
> > I have a state object that i want to inject into a service i defined
> >
> > <contribution configuration-id="tapestry.state.ApplicationObjects">
> > <state-object name="registration" scope="session">
> > <create-instance class="org.mycompany.Registration"/>
> > </state-object>
> > </contribution>
> >
> > I am trying what is below without success: HOW do i point to the
> > stateobject in my service?
> >
> >
> > <service-point id="JoinTeamService" interface="
> > org.apache.tapestry.engine.IEngineService">
> >
> > <invoke-factory>
> >
> > <construct class="org.mycompany.JoinTeamService">
> >
> > <set-configuration property="registration" configuration-id="
> > tapestry.state.ApplicationObjects:registration"/>
> >
> > </construct>
> >
> > </invoke-factory>
> >
> > </service-point>
> >
> >
> >
> > thanks jm
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
tapestry-user-unsubscribe@jaka...
> > For additional commands, e-mail:
tapestry-user-help@jaka...
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
tapestry-user-unsubscribe@jaka...
> For additional commands, e-mail:
tapestry-user-help@jaka...
>
>
opensubscriber is not affiliated with the authors of this message nor responsible for its content.