[ http://jira.andromda.org/browse/SPRING-132?page=comments#action_12291 ]
     
Peter Friese commented on SPRING-132:
-------------------------------------

Imagine this:
I have a transformation engine that supports multiple transformation 
strategies. The user supplies an ID for the transformation strategy to be used. 
Using the getService(String id) method, I can easily look up a service by it's 
name without having to use reflection.

> Add a method to Servicelocators that let's clients retrieve beans by their ID.
> ------------------------------------------------------------------------------
>
>          Key: SPRING-132
>          URL: http://jira.andromda.org/browse/SPRING-132
>      Project: Spring Cartridge
>         Type: Improvement
>     Versions: 3.1
>     Reporter: Peter Friese
>     Assignee: Peter Friese
>      Fix For: 3.1

>
> Sometimes, it is desirable to be able to retrieve a service by it's string 
> ID, like this:
> ServiceLocator.getService("serviceID");




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Reply via email to