Class ScopeModel

java.lang.Object
org.apache.dubbo.rpc.model.ScopeModel
All Implemented Interfaces:
ExtensionAccessor
Direct Known Subclasses:
ApplicationModel, FrameworkModel, ModuleModel

public abstract class ScopeModel extends Object implements ExtensionAccessor
  • Method Details

    • destroy

      public void destroy()
    • isDestroyed

      public boolean isDestroyed()
    • addDestroyListener

      public final void addDestroyListener(ScopeModelDestroyListener listener)
    • addClassLoaderListener

      public final void addClassLoaderListener(ScopeClassLoaderListener listener)
    • getAttributes

      public Map<String,Object> getAttributes()
    • getAttribute

      public <T> T getAttribute(String key, Class<T> type)
    • getAttribute

      public Object getAttribute(String key)
    • setAttribute

      public void setAttribute(String key, Object value)
    • getExtensionDirector

      public ExtensionDirector getExtensionDirector()
      Specified by:
      getExtensionDirector in interface ExtensionAccessor
    • getBeanFactory

      public final ScopeBeanFactory getBeanFactory()
    • getOrRegisterBean

      public final <T> T getOrRegisterBean(Class<T> type)
    • getBean

      public final <T> T getBean(Class<T> type)
    • getParent

      public ScopeModel getParent()
    • getScope

      public ExtensionScope getScope()
    • addClassLoader

      public void addClassLoader(ClassLoader classLoader)
    • removeClassLoader

      public void removeClassLoader(ClassLoader classLoader)
    • getClassLoaders

      public Set<ClassLoader> getClassLoaders()
    • modelEnvironment

      public abstract Environment modelEnvironment()
      Get current model's environment.
      Note: This method should not start with `get` or it would be invoked due to Spring boot refresh.
      See Also:
    • getModelEnvironment

      @Deprecated public final Environment getModelEnvironment()
      Deprecated.
      use modelEnvironment() instead
      Get current model's environment.
      See Also:
    • getInternalId

      public String getInternalId()
    • getModelName

      public String getModelName()
    • setModelName

      public void setModelName(String modelName)
    • isInternal

      public boolean isInternal()
    • getDesc

      public String getDesc()
      Returns:
      to describe string of this scope model
    • toString

      public String toString()
      Overrides:
      toString in class Object