You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by pickerel yee <pi...@gmail.com> on 2005/09/25 06:40:49 UTC

how to inject aso object to a engine service?

i' using jdk 1.4, and config the hivemind.xml as blow

    <contribution configuration-id="tapestry.state.ApplicationObjects">
        <state-object name="application" scope="application">
            <create-instance class="d2m.adds.web.ApplicationObject"/>
        </state-object>
    </contribution>

    <service-point id="ImageTextCodeService"
interface="org.apache.tapestry.engine.IEngineService">
        <invoke-factory>
            <construct class="d2m.adds.web.services.ImageTextCodeService">
                <set-object property="linkFactory"
value="service:tapestry.url.LinkFactory"/>
                <set-object property="appliction" value="bean:application"/>
            </construct>
        </invoke-factory>
    </service-point>

    <contribution configuration-id="tapestry.services.ApplicationServices">
        <service name="imageTextCode"
object="service:d2m.adds.web.services.ImageTextCodeService"/>
    </contribution>

but it not work, what shall i do?