类 FrameworkModel
- java.lang.Object
-
- org.apache.dubbo.rpc.model.ScopeModel
-
- org.apache.dubbo.rpc.model.FrameworkModel
-
- 所有已实现的接口:
ExtensionAccessor
public class FrameworkModel extends ScopeModel
Model of dubbo framework, it can be shared with multiple applications.
-
-
构造器概要
构造器 构造器 说明 FrameworkModel()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 ApplicationModeldefaultApplication()Get or create default application modelstatic FrameworkModeldefaultModel()During destroying the default FrameworkModel, the FrameworkModel.defaultModel() or ApplicationModel.defaultModel() will return a broken model, maybe cause unpredictable problem.static voiddestroyAll()Destroy all framework model instances, shutdown dubbo engine completely.List<ApplicationModel>getAllApplicationModels()Get all application models including the internal application model.static List<FrameworkModel>getAllInstances()Get all framework model instancesList<ApplicationModel>getApplicationModels()Get all application models except for the internal application model.ApplicationModelgetInternalApplicationModel()EnvironmentgetModelEnvironment()FrameworkServiceRepositorygetServiceRepository()ApplicationModelnewApplication()-
从类继承的方法 org.apache.dubbo.rpc.model.ScopeModel
addClassLoader, addDestroyListener, destroy, getAttribute, getAttribute, getAttributes, getBeanFactory, getClassLoaders, getDesc, getExtensionDirector, getInternalId, getModelName, getParent, getScope, isDestroyed, isInternal, removeClassLoader, setAttribute, setModelName, toString
-
从接口继承的方法 org.apache.dubbo.common.extension.ExtensionAccessor
getAdaptiveExtension, getDefaultExtension, getExtension, getExtensionLoader
-
-
-
-
方法详细资料
-
defaultModel
public static FrameworkModel 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 FrameworkModel
-
getAllInstances
public static List<FrameworkModel> getAllInstances()
Get all framework model instances- 返回:
-
destroyAll
public static void destroyAll()
Destroy all framework model instances, shutdown dubbo engine completely.
-
newApplication
public ApplicationModel newApplication()
-
defaultApplication
public ApplicationModel defaultApplication()
Get or create default application model- 返回:
-
getApplicationModels
public List<ApplicationModel> getApplicationModels()
Get all application models except for the internal application model.
-
getAllApplicationModels
public List<ApplicationModel> getAllApplicationModels()
Get all application models including the internal application model.
-
getInternalApplicationModel
public ApplicationModel getInternalApplicationModel()
-
getServiceRepository
public FrameworkServiceRepository getServiceRepository()
-
getModelEnvironment
public Environment getModelEnvironment()
- 指定者:
getModelEnvironment在类中ScopeModel
-
-