2010-01-28 29 views

回答

0

了它。

<service-point id="MyService" interface="pkg.MyService"> 
    <invoke-factory> 
     <construct class="pkg.MyService"> 
      <set-object property="linkFactory" value="infrastructure:linkFactory" /> 
      <set-service property="appStateMgr" service-id="tapestry.state.ApplicationStateManager"/> 
     </construct> 
    </invoke-factory> 
</service-point> 

,一旦它注入:

(Visit) appStateMgr.get("visit")