[Arp] best practice
Folkert (Nederflash)
info at swapdepths.nl
Sat Apr 30 14:04:58 PDT 2005
Aral you exactly schetsing the situation, and infact i meant the
situation where you have two or three different services in the
ServiceLocator, and i even have the BusinessDelegate in use ;) so thats
not an issue or something , as everthing works like charm. The point or
the thought's i mean are what to do in a situation...
I was (and am) thinking on how to akt if two or more services (declared
and all in the ServiceLocator) are using the same methods. normally for
instance when you have a 'getCategories()' method in you service, that's
also 'default' the name for the Command, so GetCategorieCommand is born.
so far so good.
Then the second service also has a getCategories() method in it's
service but hey , there is already a getCategorieCommand for the first
service. then what to do.
That's why it's maybe some idea to do something with the naming of the
commands (in case of use from multiple services)
Get my drift now ?
Aral Balkan wrote:
> Hi Folkert,
>
> That's why we have the ServiceLocator. You ask for services by name
> from the ServiceLocator in an effort to abstract the service lookup.
> Thus, when you ask for, say the "CategoryService", your commands don't
> care what the technology is. It could be remoting, xml, etc. As far as
> your commands are concerned, they're consuming a service. In the
> ServiceLocator you can replace the Remoting service with an XML
> sevice, etc.
>
> All the best,
> Aral
>
> Folkert (Nederflash) wrote:
>
>> Hello All,
>>
>> Just a thought needing some other 'views'.
>> <snip>
>
>
>
>
> _______________________________________________
> Arp mailing list
> Arp at ariaware.com
> http://ariaware.com/mailman/listinfo/arp_ariaware.com
>
More information about the Arp
mailing list