You need to prefix the id of the module onto the 'simple' id of the service
point to get the full id. For example:
<module id="mymodule" version="1.0.0">
<service-point id="MyService" interface="IService">
... etc...
In this example, the full service id is mymodule.MyService
And you'd do this in Tapestry:
@InjectObject("service:mymodule.MyService")
Paul
"sp y" <[EMAIL PROTECTED]> wrote on 28/04/2006 03:58:38:
> Thanks for your attention.
>
> I've created a custom service, but I've problem on injecting the service
> @InjectObject("service:MyService"). The configuration goes here.
>
> <service-point id="MyService" interface="IService">
> <invoke-factory>
> <construct class="impl.MyServiceImpl">
> <set-object property="linkFactory" value="infrastructure:linkFactory"
> />
> </construct>
> </invoke-factory>
> </service-point>
>
> I've tried to register it under infrastructure and it works, im inject the
> service with @InjectObject("infrastructure:myservice"). The configuration
> goes here.
>
> <contribution configuration-id="tapestry.Infrastructure">
> <property name="myservice" object="service:MyService" />
> </contribution>
>
> Im wondering if there's any possibilities to have it register under
> "service" to form "service:MyService" everytime i want to inject it? Im
> prefer to Not using Registry to get the service, any ideas?
>
> Regards,
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]