May be this way:
<service-point id="DAO">
<invoke-factory>
<contruct class="impl.DAOImpl">
<object>service-property:DataSourceProvider:dataSource</object>
</contruct>
</invoke-factory>
</service-point>see: http://jakarta.apache.org/hivemind/hivemind/BuilderFactory.html ________________________________ Von: Aleksej [mailto:[EMAIL PROTECTED] Gesendet: Di 16.08.2005 08:10 An: [email protected] Betreff: 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
