public class ApplicationModel extends Object
ExtensionLoader, DubboBootstrap and this class are at present designed to be
singleton or static (by itself totally static or uses some static fields). So the instances
returned from them are of process scope. If you want to support multiple dubbo servers in one
single process, you may need to refactor those three classes.
Represent a application which is using Dubbo and store basic metadata info for using
during the processing of RPC invoking.
ApplicationModel includes many ProviderModel which is about published services and many Consumer Model which is about subscribed services.
| 构造器和说明 |
|---|
ApplicationModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Collection<ConsumerModel> |
allConsumerModels() |
static Collection<ProviderModel> |
allProviderModels() |
static String |
getApplication()
已过时。
|
static ApplicationConfig |
getApplicationConfig() |
static ConfigManager |
getConfigManager() |
static ConsumerModel |
getConsumerModel(String serviceKey) |
static Environment |
getEnvironment() |
static String |
getName() |
static ProviderModel |
getProviderModel(String serviceKey) |
static ServiceRepository |
getServiceRepository() |
static void |
init() |
static void |
initFrameworkExts() |
static void |
reset()
已过时。
|
static void |
setApplication(String application)
已过时。
|
static String |
tryGetApplication()
已过时。
|
public static void init()
public static Collection<ConsumerModel> allConsumerModels()
public static Collection<ProviderModel> allProviderModels()
public static ProviderModel getProviderModel(String serviceKey)
public static ConsumerModel getConsumerModel(String serviceKey)
public static void initFrameworkExts()
public static Environment getEnvironment()
public static ConfigManager getConfigManager()
public static ServiceRepository getServiceRepository()
public static ApplicationConfig getApplicationConfig()
public static String getName()
@Deprecated public static String getApplication()
@Deprecated public static String tryGetApplication()
@Deprecated public static void setApplication(String application)
@Deprecated public static void reset()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.