You should be able to use the set-object
(http://jakarta.apache.org/hivemind/hivemind/BuilderFactory.html#set-obj
ect):

<service-point id="ReportService"
interface="org.apache.tapestry.engine.IEngineService">
     <invoke-factory model="singleton">
      <construct class="view.report.ReportService" >
         <set-object property="manager" value="spring:programManager"/>
      </construct>
     </invoke-factory>
  </service-point>

-----Original Message-----
From: Cosmin Bucur [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2006 08:41
To: Tapestry users
Subject: Injecting a spring bean into a Service

I have the following service :

<contribution configuration-id="tapestry.services.ApplicationServices">
         <service name="reportService" object="service:ReportService" />
</contribution>

 <service-point id="ReportService"
interface="org.apache.tapestry.engine.IEngineService">
     <invoke-factory model="singleton">
      <construct class="view.report.ReportService" />
     </invoke-factory>
  </service-point>

I would like to inject a spring bean into this service . I am
currently able to inject spring beans into normal tapestry pages using
: <inject property="manager" object="spring:programManager" /> in the
.jwc/.page files . What is the standard way to do this in Tap4 with
Services ? I can't seem to be able to find any examples or
documentation on this matter .

Thanks ,
Cosmin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to