Skip to content

Commit

Permalink
fix refresh bean listener duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiyue1102 committed Sep 18, 2024
1 parent 7eeafe0 commit 85e6eaa
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,27 @@
import com.alibaba.nacos.api.config.listener.AbstractSharedListener;
import com.alibaba.nacos.client.config.impl.ConfigChangeHandler;

public abstract class AbstractConfigChangeListener extends AbstractSharedListener {
public abstract class AbstractConfigChangeListener extends AbstractSharedListener implements TargetRefreshable {

String lastContent;

Object target;

@Override
public Object getTarget() {
return target;
}

@Override
public void setTarget(Object target) {
this.target = target;
}

public AbstractConfigChangeListener(Object target) {
this.target = target;
}


@Override
public void innerReceive(String dataId, String group, String configInfo) {

Expand Down
Loading

0 comments on commit 85e6eaa

Please sign in to comment.