Commit 84537673 authored by sunshanpeng's avatar sunshanpeng Committed by Jason Song

fix:ConfigChangeListener to ConfigFileChangeListener (#2623)

parent 0fcce200
...@@ -44,7 +44,7 @@ public interface ConfigFile { ...@@ -44,7 +44,7 @@ public interface ConfigFile {
* @param listener the specific config change listener to remove * @param listener the specific config change listener to remove
* @return true if the specific config change listener is found and removed * @return true if the specific config change listener is found and removed
*/ */
public boolean removeChangeListener(ConfigChangeListener listener); public boolean removeChangeListener(ConfigFileChangeListener listener);
/** /**
* Return the config's source type, i.e. where is the config loaded from * Return the config's source type, i.e. where is the config loaded from
......
package com.ctrip.framework.apollo.internals; package com.ctrip.framework.apollo.internals;
import com.ctrip.framework.apollo.ConfigChangeListener;
import com.ctrip.framework.apollo.enums.ConfigSourceType; import com.ctrip.framework.apollo.enums.ConfigSourceType;
import java.util.List; import java.util.List;
import java.util.Properties; import java.util.Properties;
...@@ -104,7 +103,7 @@ public abstract class AbstractConfigFile implements ConfigFile, RepositoryChange ...@@ -104,7 +103,7 @@ public abstract class AbstractConfigFile implements ConfigFile, RepositoryChange
} }
@Override @Override
public boolean removeChangeListener(ConfigChangeListener listener) { public boolean removeChangeListener(ConfigFileChangeListener listener) {
return m_listeners.remove(listener); return m_listeners.remove(listener);
} }
......
...@@ -145,7 +145,7 @@ public class ConfigServiceTest { ...@@ -145,7 +145,7 @@ public class ConfigServiceTest {
} }
@Override @Override
public boolean removeChangeListener(ConfigChangeListener listener) { public boolean removeChangeListener(ConfigFileChangeListener listener) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment