Package org.apache.dubbo.rpc.model
Class ScopeModel
java.lang.Object
org.apache.dubbo.rpc.model.ScopeModel
- All Implemented Interfaces:
ExtensionAccessor
- Direct Known Subclasses:
ApplicationModel,FrameworkModel,ModuleModel
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassLoader(ClassLoader classLoader) final voidfinal voidaddDestroyListener(ScopeModelDestroyListener listener) voiddestroy()getAttribute(String key) <T> TgetAttribute(String key, Class<T> type) getDesc()final EnvironmentDeprecated.use modelEnvironment() insteadgetScope()booleanbooleanabstract EnvironmentGet current model's environment.voidremoveClassLoader(ClassLoader classLoader) voidsetAttribute(String key, Object value) voidsetModelName(String modelName) toString()Methods 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
-
Method Details
-
destroy
public void destroy() -
isDestroyed
public boolean isDestroyed() -
addDestroyListener
-
addClassLoaderListener
-
getAttributes
-
getAttribute
-
getAttribute
-
setAttribute
-
getExtensionDirector
- Specified by:
getExtensionDirectorin interfaceExtensionAccessor
-
getBeanFactory
-
getParent
-
getScope
-
addClassLoader
-
removeClassLoader
-
getClassLoaders
-
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.use modelEnvironment() insteadGet current model's environment.- See Also:
-
getInternalId
-
getModelName
-
setModelName
-
isInternal
public boolean isInternal() -
getDesc
- Returns:
- to describe string of this scope model
-
toString
-