类 ApplicationModel
- java.lang.Object
-
- org.apache.dubbo.rpc.model.ApplicationModel
-
public class ApplicationModel extends Object
ExtensionLoader,DubboBootstrapand 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 StringgetApplication()已过时。static ApplicationConfiggetApplicationConfig()static ConfigManagergetConfigManager()static ConsumerModelgetConsumerModel(String serviceKey)static EnvironmentgetEnvironment()static StringgetName()static ProviderModelgetProviderModel(String serviceKey)static ServiceRepositorygetServiceRepository()static voidinit()static voidinitFrameworkExts()static voidreset()已过时。static voidsetApplication(String application)已过时。
-
-
-
方法详细资料
-
init
public static void init()
-
allConsumerModels
public static Collection<ConsumerModel> allConsumerModels()
-
allProviderModels
public static Collection<ProviderModel> allProviderModels()
-
getProviderModel
public static ProviderModel getProviderModel(String serviceKey)
-
getConsumerModel
public static ConsumerModel getConsumerModel(String serviceKey)
-
initFrameworkExts
public static void initFrameworkExts()
-
getEnvironment
public static Environment getEnvironment()
-
getConfigManager
public static ConfigManager getConfigManager()
-
getServiceRepository
public static ServiceRepository getServiceRepository()
-
getApplicationConfig
public static ApplicationConfig getApplicationConfig()
-
getName
public static String getName()
-
getApplication
@Deprecated public static String getApplication()
已过时。
-
setApplication
@Deprecated public static void setApplication(String application)
已过时。
-
reset
@Deprecated public static void reset()
已过时。
-
-