@Import(value=DubboDocProviderImpl.class) public class DubboApiDocsAnnotationScanner extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
| 限定符和类型 | 字段和说明 |
|---|---|
private org.apache.dubbo.config.ApplicationConfig |
application |
private org.springframework.context.ApplicationContext |
applicationContext |
private static org.apache.dubbo.common.logger.Logger |
LOG |
private org.apache.dubbo.config.ProtocolConfig |
protocol |
private org.apache.dubbo.config.ProviderConfig |
providerConfig |
private org.apache.dubbo.config.RegistryConfig |
registry |
| 构造器和说明 |
|---|
DubboApiDocsAnnotationScanner() |
| 限定符和类型 | 方法和说明 |
|---|---|
private <I,T> void |
exportDubboService(Class<I> serviceClass,
T serviceImplInstance,
boolean async)
export dubbo service for dubbo doc
|
private String |
getMethodParamsDesc(Method method)
get method parameter types describe string
return empty string if describe string is no args and no return vals ()V
|
private String |
getSupplierValueIfAbsent(String value,
java.util.function.Supplier<String> supplier)
get supplier value if @param value is blank
|
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent applicationReadyEvent) |
private void |
processApiDocAnnotation(Method method,
List<ApiCacheItem> moduleApiList,
ApiModule moduleAnn,
boolean async,
ModuleCacheItem moduleCacheItem,
String apiVersion,
String apiGroup) |
private List<ParamBean> |
processField(Class<?> argClass,
Type parameterType,
Parameter parameter)
For the attributes in the method parameters, only one layer is processed.
|
private ParamBean |
processHtmlType(Class<?> classType,
RequestParam annotation,
ParamBean param)
Determine what HTML form elements to use.
|
private static final org.apache.dubbo.common.logger.Logger LOG
@Autowired private org.springframework.context.ApplicationContext applicationContext
@Autowired private org.apache.dubbo.config.ApplicationConfig application
@Autowired private org.apache.dubbo.config.RegistryConfig registry
@Autowired private org.apache.dubbo.config.ProtocolConfig protocol
@Autowired(required=false) private org.apache.dubbo.config.ProviderConfig providerConfig
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent applicationReadyEvent)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>private String getSupplierValueIfAbsent(String value, java.util.function.Supplier<String> supplier)
value - valuesupplier - supplier lambdaprivate void processApiDocAnnotation(Method method, List<ApiCacheItem> moduleApiList, ApiModule moduleAnn, boolean async, ModuleCacheItem moduleCacheItem, String apiVersion, String apiGroup)
private String getMethodParamsDesc(Method method)
method - methodprivate List<ParamBean> processField(Class<?> argClass, Type parameterType, Parameter parameter)
private ParamBean processHtmlType(Class<?> classType, RequestParam annotation, ParamBean param)
classType - classTypeannotation - annotationparam - paramprivate <I,T> void exportDubboService(Class<I> serviceClass, T serviceImplInstance, boolean async)
Copyright © 2020–2021 The Apache Software Foundation. All rights reserved.