Package org.apache.dubbo.rpc.model
Class FrameworkModel
java.lang.Object
org.apache.dubbo.rpc.model.ScopeModel
org.apache.dubbo.rpc.model.FrameworkModel
- All Implemented Interfaces:
ExtensionAccessor
Model of dubbo framework, it can be shared with multiple applications.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUseto create a new modelinvalid reference
FrameworkModel#newModel() -
Method Summary
Modifier and TypeMethodDescriptionGet or create default application modelstatic FrameworkModelDuring destroying the default FrameworkModel, the FrameworkModel.defaultModel() or ApplicationModel.defaultModel() will return a broken model, maybe cause unpredictable problem.static voidDestroy all framework model instances, shutdown dubbo engine completely.Get all application models including the internal application model.static List<FrameworkModel> Get all framework model instancesGet all application models except for the internal application model.Get current model's environment.Methods inherited from class org.apache.dubbo.rpc.model.ScopeModel
addClassLoader, addClassLoaderListener, addDestroyListener, destroy, getAttribute, getAttribute, getAttributes, getBeanFactory, getClassLoaders, getDesc, getExtensionDirector, getInternalId, getModelEnvironment, getModelName, getParent, getScope, isDestroyed, isInternal, removeClassLoader, setAttribute, setModelName, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.extension.ExtensionAccessor
getAdaptiveExtension, getDefaultExtension, getExtension, getExtensionLoader
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
FrameworkModel
public FrameworkModel()Useto create a new modelinvalid reference
FrameworkModel#newModel()
-
-
Method Details
-
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.- Returns:
- the global default FrameworkModel
-
getAllInstances
Get all framework model instances- Returns:
-
destroyAll
public static void destroyAll()Destroy all framework model instances, shutdown dubbo engine completely. -
newApplication
-
defaultApplication
Get or create default application model- Returns:
-
getApplicationModels
Get all application models except for the internal application model. -
getAllApplicationModels
Get all application models including the internal application model. -
getInternalApplicationModel
-
getServiceRepository
-
modelEnvironment
Description copied from class:ScopeModelGet current model's environment. Note: This method should not start with `get` or it would be invoked due to Spring boot refresh.- Specified by:
modelEnvironmentin classScopeModel- See Also:
-