On 30.10.2003 17:43, Jorg Heymans wrote:

Nearly there :)

My transformer is extending AbstractDOMTransformer so i already have access to this manager object.

So would i do:
Component c = manager.lookup( "org.apache.cocoon.components.modules.input.DefaultsMetaModule");


the Component seems like a class without any methods.. so maybe do some casting here?

Simply cast it to org.apache.cocoon.components.modules.input.InputModule.


You can also have a look into the modular database actions.

Joerg


Reinhard Poetz wrote:

From: Jorg Heymans


Using cocoon 2.04, how can I retrieve the componentmanager from within a transformer? Do i need to use the sourceresolver or something from setup()? My knowledge on avalon components is poor, so i'm hoping someone can enlighten me here .



Use the Composable interface in your component and implement the method compose: public void compose(ComponentManager manager) throws ComponentException { this.manager = manager; }

HTH

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to