On 12.07.2004 15:50, Jorg Heymans wrote:
Now in 2.1.x this does not work anymore, more specifically the componentselector is not returned anymore by the servicemanager.
After a bit of introspection i changed it to WrapperServiceSelector selector = (WrapperServiceSelector) serviceManager.lookup( InputModule.ROLE + "Selector"); InputModule inputModule = (InputModule) selector.select(module);
Is this the standard way ? I am getting the desired results, just wondering if i'm not relying anything i'm not supposed to rely on :)
Yes, that's the correct way. You only should cast to ServiceSelector as at some time the serviceManager might no longer return a WrapperServiceSelector.
Joerg
