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

Romain Robbes romain.robbes at lu.unisi.ch
Fri Sep 15 19:54:03 UTC 2006


Il giorno Sep 15, 2006, alle ore 7:45 PM, stephane ducasse ha scritto:

>
> 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?)
>

Yes, the service which automates the task uses a default name which  
is the name of the package, but you can always
do that step manually. You just have to make sure to make it a  
subclass of ServiceProvider.

>>
>> 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
>>
>>
>>
>>
>
>

--
Romain Robbes
http://romain.robb.es



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060915/9fcfc728/attachment.htm


More information about the Squeak-dev mailing list