|
From: Chad B. (JIRA) <ji...@an...> - 2005-11-10 15:17:16
|
[ http://jira.andromda.org/browse/SPRING-132?page=comments#action_12292 ] Chad Brandon commented on SPRING-132: ------------------------------------- That sounds like a very unusual use and like you mentioned, you could also use reflection to retrieve the correct service, I'm not sure if we should add features for one off situations like that? > 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"); |