You can inject a service into your page :
@InjectObject("engine-service:chart")
public abstract IEngineService getChartService();
where chart is a custom service defined in
hivemind.xml . Something like :
<service-point id="chart"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct class="services.ChartService">
<set-object property="exceptionReporter"
value="infrastructure:requestExceptionReporter"/>
<set-object property="response"
value="infrastructure:response"/>
<set-object property="linkFactory"
value="infrastructure:linkFactory"/>
<set-object property="daoFactory"
value="service:daoFactory"/>
</construct>
</invoke-factory>
</service-point>
InjectObject is documented here :
http://jakarta.apache.org/tapestry/UsersGuide/hivemind.html#hivemind.inject
--- Jun Tsai <[EMAIL PROTECTED]> wrote:
> hi all,
> I find
>
cycle.getEngine().getService(BlobService.SERVICE_NAME);
> gerService method was deprected.I didn't find
> another method to get service?
>
> How to ?
>
> Thanks.
>
> Jun Tsai
> --
> Welcome to China Java Users Group(CNJUG).
> http://cnjug.dev.java.net
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
Yahoo! Photos NEW, now offering a quality print service from just 8p a photo
http://uk.photos.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]