public class ApplicationModel extends ScopeModel
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(FrameworkModel frameworkModel) |
ApplicationModel(FrameworkModel frameworkModel,
boolean isInternal) |
addClassLoaderListener, addDestroyListener, destroy, getAttribute, getAttribute, getAttributes, getBeanFactory, getClassLoaders, getDesc, getExtensionDirector, getInternalId, getModelName, getParent, getScope, isDestroyed, isInternal, setAttribute, setModelName, toStringgetAdaptiveExtension, getDefaultExtension, getExtension, getExtensionLoaderpublic ApplicationModel(FrameworkModel frameworkModel)
public ApplicationModel(FrameworkModel frameworkModel, boolean isInternal)
public static ApplicationModel ofNullable(ApplicationModel applicationModel)
public static ApplicationModel defaultModel()
@Deprecated public static Collection<ConsumerModel> allConsumerModels()
@Deprecated public static Collection<ProviderModel> allProviderModels()
@Deprecated public static ProviderModel getProviderModel(String serviceKey)
@Deprecated public static ConsumerModel getConsumerModel(String serviceKey)
@Deprecated public static Environment getEnvironment()
ScopeModel.getModelEnvironment()@Deprecated public static ConfigManager getConfigManager()
getApplicationConfigManager()@Deprecated public static ServiceRepository getServiceRepository()
getApplicationServiceRepository()@Deprecated public static ExecutorRepository getExecutorRepository()
getApplicationExecutorRepository()@Deprecated public static ApplicationConfig getApplicationConfig()
getCurrentConfig()@Deprecated public static String getName()
getApplicationName()@Deprecated public static String getApplication()
getApplicationName()@Deprecated public static void reset()
public FrameworkModel getFrameworkModel()
public ModuleModel newModule()
public Environment getModelEnvironment()
getModelEnvironment 在类中 ScopeModelpublic ConfigManager getApplicationConfigManager()
public ServiceRepository getApplicationServiceRepository()
public ExecutorRepository getApplicationExecutorRepository()
public ApplicationConfig getCurrentConfig()
public String getApplicationName()
public String tryGetApplicationName()
public void removeModule(ModuleModel moduleModel)
public List<ModuleModel> getModuleModels()
public List<ModuleModel> getPubModuleModels()
public ModuleModel getDefaultModule()
public ModuleModel getInternalModule()
@Deprecated public void setEnvironment(Environment environment)
@Deprecated public void setConfigManager(ConfigManager configManager)
@Deprecated public void setServiceRepository(ServiceRepository serviceRepository)
public void addClassLoader(ClassLoader classLoader)
addClassLoader 在类中 ScopeModelpublic void removeClassLoader(ClassLoader classLoader)
removeClassLoader 在类中 ScopeModelpublic ApplicationDeployer getDeployer()
public void setDeployer(ApplicationDeployer deployer)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.