Skip to content

Commit

Permalink
support configcenter config and refactor ConfigPostProcessor (apache#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cvictory authored and chickenlj committed Jan 16, 2020
1 parent b288ad7 commit 95ea6c9
Show file tree
Hide file tree
Showing 10 changed files with 1,301 additions and 1,226 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ compiler/build/*
compiler/.gradle/*

# protobuf
dubbo-serialization/dubbo-serialization-protobuf/build/*
dubbo-serialization/dubbo-serialization-protobuf/build/*
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public String getDisplayServiceKey() {

/**
* revert of org.apache.dubbo.common.ServiceDescriptor#getDisplayServiceKey()
*
* @param displayKey
* @return
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
*/

@SPI
public interface AppendParametersComponent {
default void appendReferParameters(ReferenceConfig referenceConfig) {
public interface ConfigInitializer {

default void initReferConfig(ReferenceConfig referenceConfig) {

}

default void appendExportParameters(ServiceConfig serviceConfig) {
default void initServiceConfig(ServiceConfig serviceConfig) {

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* 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 org.apache.dubbo.config;

import org.apache.dubbo.common.extension.SPI;

/**
* 2019/12/30
*/

@SPI
public interface ConfigPostProcessor {

default void postProcessReferConfig(ReferenceConfig referenceConfig) {

}

default void postProcessServiceConfig(ServiceConfig serviceConfig) {

}
}
Loading

0 comments on commit 95ea6c9

Please sign in to comment.