> -----Original Message-----
> From: Niclas Hedhman [mailto:[EMAIL PROTECTED] 
> Sent: den 15 december 2003 21:42
> To: Avalon framework users
> Subject: Re: Query loaded components and services?
> 
> > For this I am looking a way to query Avalon/Merlin for which 
> > components are currently deployed, and information about them. Do 
> > anyone have some input on how this should be done from a loaded 
> > component? (The Console is a Block itself, that is included 
> in another Block).
> 
> There is a small problem; Classloaders. They will protect 
> components to reach each other's guts.

I figured it would be tricky! One nice feature of Merlin is the isolation of
the components really, but it does create some complexivity in some cases,
such as this one.

> One possible solution that may work, would be to create the 
> console as a LifeCycle extension, as all components will "fly 
> by" in those hooks.

Thanks for the pointer, I was thinking about this approach. Have not looked
into lifecycle extensions earlier. Looked through it now, and it seems like
it is necessary to tag each component (in the meta information file) for the
lifecycle handler to be called. Is this the case? 

Then it's not really practical, because I would want the console to be able
to beused in a non-intrusive manner as well as letting components implement
an interface to receive command requests.

/ Nicolai


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

Reply via email to