类 ApplicationModel
- java.lang.Object
-
- org.apache.dubbo.rpc.model.ScopeModel
-
- org.apache.dubbo.rpc.model.ApplicationModel
-
- 所有已实现的接口:
ExtensionAccessor
public class ApplicationModel extends ScopeModel
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(FrameworkModel frameworkModel)ApplicationModel(FrameworkModel frameworkModel, boolean isInternal)
-
方法概要
-
从类继承的方法 org.apache.dubbo.rpc.model.ScopeModel
addDestroyListener, destroy, getAttribute, getAttribute, getAttributes, getBeanFactory, getClassLoaders, getDesc, getExtensionDirector, getInternalId, getModelName, getParent, getScope, isDestroyed, isInternal, setAttribute, setModelName, toString
-
从接口继承的方法 org.apache.dubbo.common.extension.ExtensionAccessor
getAdaptiveExtension, getDefaultExtension, getExtension, getExtensionLoader
-
-
-
-
构造器详细资料
-
ApplicationModel
public ApplicationModel(FrameworkModel frameworkModel)
-
ApplicationModel
public ApplicationModel(FrameworkModel frameworkModel, boolean isInternal)
-
-
方法详细资料
-
ofNullable
public static ApplicationModel ofNullable(ApplicationModel applicationModel)
-
defaultModel
public static ApplicationModel defaultModel()
During destroying the default FrameworkModel, the FrameworkModel.defaultModel() or ApplicationModel.defaultModel() will return a broken model, maybe cause unpredictable problem. Recommendation: Avoid using the default model as much as possible.- 返回:
- the global default ApplicationModel
-
allConsumerModels
@Deprecated public static Collection<ConsumerModel> allConsumerModels()
-
allProviderModels
@Deprecated public static Collection<ProviderModel> allProviderModels()
-
getProviderModel
@Deprecated public static ProviderModel getProviderModel(String serviceKey)
-
getConsumerModel
@Deprecated public static ConsumerModel getConsumerModel(String serviceKey)
已过时。ConsumerModel should fetch from context
-
getEnvironment
@Deprecated public static Environment getEnvironment()
已过时。Replace toScopeModel.getModelEnvironment()
-
getConfigManager
@Deprecated public static ConfigManager getConfigManager()
已过时。Replace togetApplicationConfigManager()
-
getServiceRepository
@Deprecated public static ServiceRepository getServiceRepository()
已过时。Replace togetApplicationServiceRepository()
-
getExecutorRepository
@Deprecated public static ExecutorRepository getExecutorRepository()
已过时。Replace togetApplicationExecutorRepository()
-
getApplicationConfig
@Deprecated public static ApplicationConfig getApplicationConfig()
已过时。Replace togetCurrentConfig()
-
getName
@Deprecated public static String getName()
已过时。Replace togetApplicationName()
-
getApplication
@Deprecated public static String getApplication()
已过时。Replace togetApplicationName()
-
reset
@Deprecated public static void reset()
已过时。
-
getFrameworkModel
public FrameworkModel getFrameworkModel()
-
newModule
public ModuleModel newModule()
-
getModelEnvironment
public Environment getModelEnvironment()
- 指定者:
getModelEnvironment在类中ScopeModel
-
getApplicationConfigManager
public ConfigManager getApplicationConfigManager()
-
getApplicationServiceRepository
public ServiceRepository getApplicationServiceRepository()
-
getApplicationExecutorRepository
public ExecutorRepository getApplicationExecutorRepository()
-
getCurrentConfig
public ApplicationConfig getCurrentConfig()
-
getApplicationName
public String getApplicationName()
-
tryGetApplicationName
public String tryGetApplicationName()
-
removeModule
public void removeModule(ModuleModel moduleModel)
-
getModuleModels
public List<ModuleModel> getModuleModels()
-
getPubModuleModels
public List<ModuleModel> getPubModuleModels()
-
getDefaultModule
public ModuleModel getDefaultModule()
-
getInternalModule
public ModuleModel getInternalModule()
-
setEnvironment
@Deprecated public void setEnvironment(Environment environment)
已过时。only for ut
-
setConfigManager
@Deprecated public void setConfigManager(ConfigManager configManager)
已过时。only for ut
-
setServiceRepository
@Deprecated public void setServiceRepository(ServiceRepository serviceRepository)
已过时。only for ut
-
addClassLoader
public void addClassLoader(ClassLoader classLoader)
- 覆盖:
addClassLoader在类中ScopeModel
-
removeClassLoader
public void removeClassLoader(ClassLoader classLoader)
- 覆盖:
removeClassLoader在类中ScopeModel
-
getDeployer
public ApplicationDeployer getDeployer()
-
setDeployer
public void setDeployer(ApplicationDeployer deployer)
-
-