cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: getting at the defaultsmodule in 2.1.x
Date Tue, 13 Jul 2004 21:57:09 GMT
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

Mime
View raw message