What you do is create a custom factory service to create your ASO, and you inject your dependencies into your custom factory, which can then pass them on to the ASO.
On 12/7/05, Scott Russell <[EMAIL PROTECTED]> wrote: > I have an application state object, that I would like to have services set on > whenever one is created (ie. standard dependecy injection, not annotation > injection or anything like that) > > I tried this in my hivemodule.xml: > > <contribution configuration-id="tapestry.state.ApplicationObjects"> > <state-object name="client-state" scope="session"> > <invoke-factory> > <construct class="com.itglovebox.esmart.state.ClientState"> > <set-object property="esmartService" value="spring:esmartService"/> > </construct> > </invoke-factory> > </state-object> > </contribution> > > But I am getting an exception when the ASO is first created. So I am wondering > if DI is supported for creating ASOs, and if so, what is the correct > configuration in hivemodule.xml. > > regards, > Scott > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
