Where can I find a use case or concrete example of setting up a service?

stephane ducasse stephane.ducasse at gmail.com
Fri Sep 15 17:45:54 UTC 2006


On 15 sept. 06, at 18:51, Romain Robbes wrote:

>
> This way all the functionality you wish to export via services is  
> regrouped in a service provider, rather than scattered in class  
> methods as it was in the previous design.

Ok
  we can define the class we want I guess (in your example you used a  
convenient method is it correct?)

>
> Each service provider implements methods returning the  
> ServiceAction objects it wishes to define, and also act as a  
> placeholder for the preferences that are set through the UI.
>
> Then the framework has only to search in subclasses of  
> ServiceProvider to find all the services defined in the system.
>
> 	Romain
>
> Il giorno Sep 15, 2006, alle ore 5:50 PM, stephane ducasse ha scritto:
>
>> romain
>>
>> why do we need to create a class
>>
>>> Services will create for you a FooServiceProvider class, a method  
>>> category named 'services' in it, and compile the following method  
>>> for you:
>>>
>>>
>>
>> stef
>>
>>>
>>
>>
>
> --
> Romain Robbes
> http://romain.robb.es
>
>
>
>




More information about the Squeak-dev mailing list