cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans>
Subject getting at the defaultsmodule in 2.1.x
Date Mon, 12 Jul 2004 13:50:29 GMT

I am currently porting my app from 2.0.x to 2.1.x.

In components i used to do
        ComponentSelector selector =
                 InputModule.ROLE + "Selector");
         InputModule inputModule = (InputModule);

to retrieve values set in the defaultsmetamodule.

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);

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 :)

Kind Regards
Jorg Heymans

View raw message