@Component public class ExtensionExecutor extends AbstractComponentExecutor
| 构造器和说明 |
|---|
ExtensionExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <C> C |
locateComponent(Class<C> targetClz,
com.alibaba.cola.extension.BizScenario bizScenario) |
protected <Ext> Ext |
locateExtension(Class<Ext> targetClz,
com.alibaba.cola.extension.BizScenario bizScenario)
if the bizScenarioUniqueIdentity is "ali.tmall.supermarket"
the search path is as below:
1、first try to get extension by "ali.tmall.supermarket", if get, return it.
2、loop try to get extension by "ali.tmall", if get, return it.
3、loop try to get extension by "ali", if get, return it.
4、if not found, try the default extension
|
execute, execute, executeVoid, executeVoidprotected <C> C locateComponent(Class<C> targetClz, com.alibaba.cola.extension.BizScenario bizScenario)
locateComponent 在类中 AbstractComponentExecutorprotected <Ext> Ext locateExtension(Class<Ext> targetClz, com.alibaba.cola.extension.BizScenario bizScenario)
targetClz - Copyright © 2020. All rights reserved.