You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// For compatibility purpose, use registry as the default config center if the registry protocol is zookeeper and there's no config center specified explicitly.
Copy file name to clipboardexpand all lines: dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/AbstractDynamicConfiguration.java
+50-22
Original file line number
Diff line number
Diff line change
@@ -23,23 +23,36 @@
23
23
importjava.util.concurrent.ConcurrentMap;
24
24
25
25
/**
26
+
* Dynamic configuration template class. The concrete implementation needs to provide implementation for three methods.
Copy file name to clipboardexpand all lines: dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/ConfigChangeEvent.java
Copy file name to clipboardexpand all lines: dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/ConfigChangeType.java
Copy file name to clipboardexpand all lines: dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/ConfigurationListener.java
+8-1
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,18 @@
19
19
importorg.apache.dubbo.common.URL;
20
20
21
21
/**
22
-
*
22
+
* Config listener, will get notified when the config it listens on changes.
23
23
*/
24
24
publicinterfaceConfigurationListener {
25
25
26
+
/**
27
+
* Listener call back method. Listener gets notified by this method once there's any change happens on the config
Copy file name to clipboardexpand all lines: dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/ConfigurationUtils.java
+6-7
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
importjava.util.concurrent.ConcurrentHashMap;
29
29
30
30
/**
31
-
*
31
+
* Utilities for manipulating configurations from different sources
@@ -64,17 +64,16 @@ public static CompositeConfiguration getRuntimeCompositeConf(URL url, String met
64
64
}
65
65
66
66
/**
67
-
* If user opens DynamicConfig, the extension instance must has been created during the initialization of ConfigCenterConfig with the right extension type user specified.
68
-
* If no DynamicConfig presents, NopDynamicConfiguration will be used.
69
-
*
70
-
* @return
67
+
* If user opens DynamicConfig, the extension instance must has been created during the initialization of
68
+
* ConfigCenterConfig with the right extension type user specified. If no DynamicConfig presents,
Copy file name to clipboardexpand all lines: dubbo-configcenter/dubbo-configcenter-api/src/main/java/org/apache/dubbo/configcenter/ConfigurationWrapper.java
0 commit comments