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.
| Constructor and Description |
|---|
ApplicationModel() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<ConsumerModel> |
allConsumerModels() |
static Collection<ProviderModel> |
allProviderModels() |
static String |
getApplication()
Deprecated.
|
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)
Deprecated.
|
public static final String NAME
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 void setApplication(String application)
public static void reset()
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.