correct word spell
This commit is contained in:
parent
5a583f1997
commit
98d35d2420
@ -202,7 +202,7 @@ public class CacheData {
|
||||
|
||||
// compare lastContent and content
|
||||
if (listener instanceof AbstractConfigChangeListener) {
|
||||
Map data = ConfigChangeHander.getChangeParserInstance().parseChangeData(lastContent, content, type);
|
||||
Map data = ConfigChangeHandler.getChangeParserInstance().parseChangeData(lastContent, content, type);
|
||||
ConfigChangeEvent event = new ConfigChangeEvent(data);
|
||||
((AbstractConfigChangeListener)listener).receiveConfigChange(event);
|
||||
}
|
||||
|
@ -1,41 +0,0 @@
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
|
||||
* file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
|
||||
* to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
|
||||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations under the License.
|
||||
*/
|
||||
package com.alibaba.nacos.client.config.impl;
|
||||
|
||||
/**
|
||||
* ConfigChangeHander
|
||||
*
|
||||
* @author za-zhangzejiang
|
||||
* @version v0.1 2019-11-04 15:39 za-zhangzejiang Exp $
|
||||
*/
|
||||
public class ConfigChangeHander {
|
||||
private ConfigChangeHander() {
|
||||
this.configChangeParser = new PropertiesChangeParser("properties").addNext(new YmlChangeParser("yaml"));
|
||||
}
|
||||
|
||||
public static ConfigChangeHander getInstance() {
|
||||
return ConfigChangeHanderHolder.INSTANCE;
|
||||
}
|
||||
|
||||
public static AbstractConfigChangeParser getChangeParserInstance() {
|
||||
return ConfigChangeHanderHolder.INSTANCE.configChangeParser;
|
||||
}
|
||||
|
||||
private static class ConfigChangeHanderHolder {
|
||||
private final static ConfigChangeHander INSTANCE = new ConfigChangeHander();
|
||||
}
|
||||
|
||||
private AbstractConfigChangeParser configChangeParser;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright 1999-2018 Alibaba Group Holding Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.alibaba.nacos.client.config.impl;
|
||||
|
||||
/**
|
||||
* ConfigChangeHandler
|
||||
*
|
||||
* @author rushsky518
|
||||
*/
|
||||
public class ConfigChangeHandler {
|
||||
private ConfigChangeHandler() {
|
||||
this.configChangeParser = new PropertiesChangeParser("properties").addNext(new YmlChangeParser("yaml"));
|
||||
}
|
||||
|
||||
public static ConfigChangeHandler getInstance() {
|
||||
return ConfigChangeHandlerHolder.INSTANCE;
|
||||
}
|
||||
|
||||
public static AbstractConfigChangeParser getChangeParserInstance() {
|
||||
return ConfigChangeHandlerHolder.INSTANCE.configChangeParser;
|
||||
}
|
||||
|
||||
private static class ConfigChangeHandlerHolder {
|
||||
private final static ConfigChangeHandler INSTANCE = new ConfigChangeHandler();
|
||||
}
|
||||
|
||||
private AbstractConfigChangeParser configChangeParser;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user