cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <>
Subject Re: Accessing Spring beans from an Avalon component
Date Tue, 22 Jul 2008 12:12:12 GMT
Molnar Peter pisze:
> On Pén, Július 18, 2008 5:44 pm, Grzegorz Kossakowski wrote:
>> Just use servicemanager.lookup('here.goes.spring.bean') method. The
>> Service Manager can be injected
>> into Avalon component by implementing Serviceable interface.
> It was solved eventually, because I have figured out that in Cocoon 2.2
> the site components (a reader in this case) are also instantiated via the
> spring bean factory. I still don't have a clue why avalon interfaces are
> implemented (or maybe the documentation is not up-to-date).

No, it because how it works.

We have a Avalon-Spring bridge that will pick up all Avalon components and initialize them
Spring so in a fact they are Spring beans.

That was made on purpose to make a transition from Avalon to Spring smooth.

Grzegorz Kossakowski

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message