You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by Aleksej <al...@ivs.lt> on 2005/08/16 08:10:10 UTC

How to pass parameters to service constructor?

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