-
Bug
-
Resolution: Done
-
Major
-
13.0.2.Final
-
None
We have events for remove-template, but not create-template because the @Listener implementation is as follows:
@ConfigurationChanged public CompletionStage<Void> onConfigurationEvent(ConfigurationChangedEvent event) { String eventType = event.getConfigurationEventType().toString().toLowerCase() + "-" + event.getConfigurationEntityType(); final ServerSentEvent sse; if (event.getConfigurationEventType() == ConfigurationChangedEvent.EventType.REMOVE) { sse = new ServerSentEvent(eventType, event.getConfigurationEntityName()); } else { switch (event.getConfigurationEntityType()) { case "cache": try { sse = new ServerSentEvent(eventType, cacheConfig(cacheManager, event.getConfigurationEntityName(), mediaType)); } catch (Exception e) { Log.REST.errorf(e, "Could not serialize cache configuration"); return CompletableFutures.completedNull(); } break; default: // Unhandled entity type, ignore return CompletableFutures.completedNull(); } } return eventStream.sendEvent(sse); } }