Description
In Oak, the Consolidated Listener Stats MBean provides an overview of all listeners, including the name of the class. When used in Sling (and esp with SLING-6056) a new bunch of listeners is added, namely ResourceChangeListeners that will get mapped 1:1 to an oak listener/backgroundobserver. Currently though, the consolidated listeners mbean only shows the getClass().getName() - which in the case of a ResourceChangeListener doesn't help much, as the 'real' listener hides 2 steps behind either a JcrResourceListener or a OakResourceListener. So it wouldn't be possible to tell from a list of such listeners what really is behind.
Therefore suggesting to introduce a
/** toString of the event listener */ String getToString();
that then can be used by the ConsolidatedListenerMBeanImpl
Attachments
Attachments
Issue Links
- blocks
-
OAK-4855 Expose actual listener.toString in consolidated listener mbean
- Closed
-
SLING-6056 achieve 1:1 mapping between observation and resource change listener
- Closed