Class FrameworkModel

java.lang.Object
org.apache.dubbo.rpc.model.ScopeModel
org.apache.dubbo.rpc.model.FrameworkModel
All Implemented Interfaces:
ExtensionAccessor

public class FrameworkModel extends ScopeModel
Model of dubbo framework, it can be shared with multiple applications.
  • Field Details

  • Constructor Details

    • FrameworkModel

      public FrameworkModel()
      Use
      invalid reference
      FrameworkModel#newModel()
      to create a new model
  • Method Details

    • 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.
      Returns:
      the global default FrameworkModel
    • getAllInstances

      public static List<FrameworkModel> getAllInstances()
      Get all framework model instances
      Returns:
    • 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
      Returns:
    • 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()
    • modelEnvironment

      public Environment modelEnvironment()
      Description copied from class: ScopeModel
      Get current model's environment.
      Note: This method should not start with `get` or it would be invoked due to Spring boot refresh.
      Specified by:
      modelEnvironment in class ScopeModel
      See Also: