cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinh...@apache.org>
Subject RE: Getting the componentmanager (was Re: access defaultsmetamodule variables from java code)
Date Thu, 30 Oct 2003 16:01:59 GMT

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message