-
Notifications
You must be signed in to change notification settings - Fork 26.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.0] Multi instance - multi module config/deploy and spring support (#…
…8789) * Add spring support for multi instance * Fix testMultiModuleApplication * polish ApplicationModel and so on * destroy application when all module are removed * Extract ApplicationDeployer and ModuleDeployer, add ModuleConfigManager, add spring support for module manage * Fix ut * Initialize SpringExtensionInjector * Fix DubboHealthIndicatorTest * Fix SpringExtensionInjector avoid using not completed Spring ApplicationContext * Prepare application instance before refer services, fix SpringXmlConfigTest * App index starts from 1 in each FrameworkModel * Add ConfigScopeModelInitializer, Refactor DubboShutdownHook * Register bean with class is change to getOrRegisterBean * Fix ShutdownTelnetTest * Fix missing dependency * Fix not found ApplicationModel bean in spring context * Add module deploy and reload test * Put deployer to scope model attributes * Add getDeployer() to ApplicationModel/ModuleModel
- Loading branch information
Showing
163 changed files
with
4,275 additions
and
2,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 0 additions & 75 deletions
75
...mmon/src/main/java/org/apache/dubbo/common/beans/factory/ScopeBeanFactoryInitializer.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
dubbo-common/src/main/java/org/apache/dubbo/common/config/ReferenceCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* 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.common.config; | ||
|
||
import org.apache.dubbo.config.ReferenceConfigBase; | ||
|
||
import java.util.List; | ||
|
||
public interface ReferenceCache { | ||
@SuppressWarnings("unchecked") | ||
<T> T get(ReferenceConfigBase<T> referenceConfig); | ||
|
||
@SuppressWarnings("unchecked") | ||
<T> T get(String key, Class<T> type); | ||
|
||
@SuppressWarnings("unchecked") | ||
<T> T get(String key); | ||
|
||
@SuppressWarnings("unchecked") | ||
<T> List<T> getAll(Class<T> type); | ||
|
||
@SuppressWarnings("unchecked") | ||
<T> T get(Class<T> type); | ||
|
||
void destroy(String key, Class<?> type); | ||
|
||
void destroy(Class<?> type); | ||
|
||
<T> void destroy(ReferenceConfigBase<T> referenceConfig); | ||
|
||
void destroyAll(); | ||
} |
Oops, something went wrong.