DynamicSet: Store names of plugins who bound the items

For the items in DynamicItem and DynamicMap we are storing the name of
the plugin which has bound the item. Do the same for items in DynamicSet
so that we can provide items from DynamicSet by plugin.

Being able to get the name of the plugin that has bound the item is
useful for logging and debugging.

Change-Id: I990afdc117e18f8544ca376788ce0f35bb1c2ec5
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2018-08-24 15:49:36 +02:00
parent 5b337c20e8
commit 812635aae2
28 changed files with 197 additions and 64 deletions

View File

@@ -63,6 +63,7 @@ public class EventRecorder {
eventListenerRegistration =
eventListeners.add(
"gerrit",
new UserScopedEventListener() {
@Override
public void onEvent(Event e) {