On Fri, Apr 15, 2005 at 04:07:15PM +0200, Carsten Ziegeler wrote:
> I while ago we briefly discussed the idea of sitemap listeners that are
> invoked each time a sitemap is entered/left.
>
> Our 2.2 code base contains a first implementation which can be seen as a
> very simple base for this feature. I think it's time now to discuss this
> further.
>
> 1. Configuration
>
> You can define listeners in the map:components section in a sitemap with:
> <map:listeners>
> <map:listener role="Some Avalon role"/>
> <map:listener class="A class"/>
> </map:listeners>
>
> So you can either use a configured component or define a class and then
> an instance of this class is created (using the per sitemap
> classloader). In both cases the listener must be thread safe.
>
> 2. Listeners and Events
>
> Currently there are two listener types defined (in o.a.c.sitemap):
>
> public interface EnterSitemapEventListener extends SitemapListener {
>
> void enteredSitemap(EnterSitemapEvent event);
> }
> public interface LeaveSitemapEventListener extends SitemapListener {
>
> void leftSitemap(LeaveSitemapEvent event);
> }Why two separate interfaces? Ciao -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com
smime.p7s
Description: S/MIME cryptographic signature
