Utils.getRegistryEventBrokerService().registerEventDispatcher(
RegistryEventingConstants.TOPIC_PREFIX, dispatcher);
}
private void setupHandlers() {
RegistryService registryService = Utils.getRegistryService();
if (registryService instanceof RemoteRegistryService && !initialized) {
initialized = true;
log.warn("Eventing is not available on Remote Registry");
return;
}
if (!initialized && listenerManager != null && registryService != null) {
initialized = true;
try {
// We can't get Registry from Utils, as the MessageContext is not available at
// activation time.
Registry systemRegistry = registryService.getConfigSystemRegistry();
if (registry != null && registry == systemRegistry) {
return;
}
registry = systemRegistry;
if (registry == null ||