hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksej <alek...@ivs.lt>
Subject How to pass parameters to service constructor?
Date Tue, 16 Aug 2005 06:10:10 GMT
How to pass parameters to service constructor?
For example, I have service-point declared like this:
<service-point id="DAO">
   <invoke-factory>
      <contruct class="impl.DAOImpl">
         <set-object property="dataSource" 
object="service-property:DataSourceProvider:dataSource"/>
      </contruct>
   </invoke-factory>
</service-point>

This code will create DAO service and will set it dataSource property 
with value 'dataSource' from
'DataSourceProvider' service. I wonder, if there a way to pass 
dataSource in DAOImpl constructor,
not in property?


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org


Mime
View raw message