tapestry4

my hivemodule.xml looks like this

<module id="testmodule" version="1.0.0" package="com.test.project">
        <service-point id="TestDao" interface="dao.TestDao">
                <create-instance class="dao.impl.MemoryTestDaoImpl" />
        </service-point>

        <service-point id="TestService" interface="service.TestService">
                <invoke-factory>
                        <construct class="service.impl.TestServiceImpl">
                                <set-service property="testDao" 
service-id="TestDao"/>
                        </construct>
                </invoke-factory>
        </service-point>
</module>

page class:

public abstract class TestPage extends BasePage
{
        @InjectObject("service:testmodule.TestService")
        public abstract TestService getTestService();
}

The above works, but if I remove @InjectObject, the service does not
get injected...

Also auto-wiring is not working for hivemind services themselves... if
I remove the setter injection above, testDao will be null. (Which
makes me suspect both might be hivemind problems not tapestry
problems... but I thought I'd try here).

I would appreciate some help

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to