You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Florian Suschetz <fl...@jmh.one2space.com> on 2002/11/28 00:23:20 UTC

IntakeTool<>IntakeService

Hi people!
I have another question:
What is the difference between the IntakeService
and the IntakeTool defined in TurbineResources.properties ?
Thanks!
Florian

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: IntakeTool<>IntakeService

Posted by David Worms <da...@simpledesign.com>.
A service take its inspiration from the avalon framework. When you 
launch your turbine application, turbine launch a service container. 
Currently, the container is fulcrum, but it might change in the future. 
Then, the container register a set of services.

Let take a security service. When the service is registered, it will 
put all the users with their respective role/permission/group in memory 
for fast retrieval. Then, this service has some method to access the 
information such like SecurityService.getUser(String name).
The service can be accessed from your java code or directly from 
velocity using a tool. The tool access the service the same way you 
will do it from your java code, through the Rundata class( if the tool 
is of type request).

To summarize, the tool in such a situation help you to access a service 
directly from your velocity templates.

hope I made it clear enough.

david

On Wednesday, November 27, 2002, at 03:23  PM, Florian Suschetz wrote:

> Hi people!
> I have another question:
> What is the difference between the IntakeService
> and the IntakeTool defined in TurbineResources.properties ?
> Thanks!
> Florian
>
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>