mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
24 lines
595 B
Java
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;
|
|
}
|
|
}
|