Package org.apache.dubbo.common.beans
Class ScopeBeanExtensionInjector
java.lang.Object
org.apache.dubbo.common.beans.ScopeBeanExtensionInjector
- All Implemented Interfaces:
ExtensionAccessorAware,ExtensionInjector,ScopeModelAware
public class ScopeBeanExtensionInjector
extends Object
implements ExtensionInjector, ScopeModelAware
Inject scope bean to SPI extension instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetInstance(Class<T> type, String name) Get instance of specify type and name.voidsetScopeModel(ScopeModel scopeModel) Override this method if you need get the scope model (maybe one of FrameworkModel/ApplicationModel/ModuleModel).Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.extension.ExtensionInjector
setExtensionAccessorMethods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware
setApplicationModel, setFrameworkModel, setModuleModel
-
Constructor Details
-
ScopeBeanExtensionInjector
public ScopeBeanExtensionInjector()
-
-
Method Details
-
setScopeModel
Description copied from interface:ScopeModelAwareOverride this method if you need get the scope model (maybe one of FrameworkModel/ApplicationModel/ModuleModel).- Specified by:
setScopeModelin interfaceScopeModelAware- Parameters:
scopeModel-
-
getInstance
Description copied from interface:ExtensionInjectorGet instance of specify type and name.- Specified by:
getInstancein interfaceExtensionInjector- Parameters:
type- object type.name- object name.- Returns:
- object instance.
-