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 an 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.
addClassLoaderListener, addDestroyListener, destroy, getAttribute, getAttribute, getAttributes, getBeanFactory, getClassLoaders, getDesc, getExtensionDirector, getInternalId, getModelEnvironment, getModelName, getParent, getScope, isDestroyed, isInternal, setAttribute, setModelName, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdaptiveExtension, getDefaultExtension, getExtension, getExtensionLoaderpublic static final String NAME
public static ApplicationModel ofNullable(ApplicationModel applicationModel)
public static ApplicationModel defaultModel()
public FrameworkModel getFrameworkModel()
public ModuleModel newModule()
public Environment modelEnvironment()
ScopeModelmodelEnvironment in class ScopeModelpublic ConfigManager getApplicationConfigManager()
public ServiceRepository getApplicationServiceRepository()
public ExecutorRepository getApplicationExecutorRepository()
public boolean NotExistApplicationConfig()
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()
public void addClassLoader(ClassLoader classLoader)
addClassLoader in class ScopeModelpublic void removeClassLoader(ClassLoader classLoader)
removeClassLoader in class ScopeModelpublic ApplicationDeployer getDeployer()
public void setDeployer(ApplicationDeployer deployer)
@Deprecated public static Collection<ConsumerModel> allConsumerModels()
ServiceRepository.allConsumerModels()@Deprecated public static Collection<ProviderModel> allProviderModels()
ServiceRepository.allProviderModels()@Deprecated public static ProviderModel getProviderModel(String serviceKey)
FrameworkServiceRepository.lookupExportedService(String)@Deprecated public static ConsumerModel getConsumerModel(String serviceKey)
@Deprecated public static Environment getEnvironment()
ScopeModel.modelEnvironment()@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()
@Deprecated public void setEnvironment(Environment environment)
@Deprecated public void setConfigManager(ConfigManager configManager)
@Deprecated public void setServiceRepository(ServiceRepository serviceRepository)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.