2023-07-10 16:50:49 -07:00

24 lines
595 B
Java

package org.openmetadata.service;
import org.openmetadata.api.configuration.ChangeEventConfiguration;
public class ChangeEventConfig {
private static ChangeEventConfiguration instance;
private static volatile boolean initialized = false;
private ChangeEventConfig() {
/* Hide constructor for singleton */
}
public static void initialize(OpenMetadataApplicationConfig config) {
if (!initialized) {
instance = config.getChangeEventConfiguration();
initialized = true;
}
}
public static ChangeEventConfiguration getInstance() {
return instance;
}
}