geoserver/geoserver — pull request #60 by aaime (2012-11-10 11:12:08+00:00)
Title: [GEOS-5395] Catalog reload breaks GWC integration

Compared to the approach discussed in the mailing list I've found that also the geoserver persister was causing issues, also the order of the operations prevented a simple "clean and re-add" approach where the listeners were being re-attached, so moved the approach out of the catalog and into the code which is the origin of the problem.
The GeoServer loader now stores the "non persistence" related listeners and adds them back after the synch is performed.
Imho this looks better than having the catalog knowing which listers it has to deal with.