public abstract class BaseApiBeansExtractor extends java.lang.Object implements RpcApiBeansExtractor
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
BaseApiBeansExtractor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtractorProcessor(ExtractorProcessor processor)
addExtractorProcessor.
|
protected boolean |
apiPostFilter(ApiBean api)
Post-processing, you can filter the information that does not need to be registered again through the secondary implementation.
default is pass. |
protected void |
apiPostProcess(ApiBean api)
post process api.
|
protected ApiBean |
beanToApi(java.lang.String key,
java.lang.Object value,
org.springframework.context.ApplicationContext applicationContext)
Convert bean instances to APIs.
|
protected boolean |
definitionPostFilter(ApiBean.ApiDefinition apiDefinition)
definitionPostFilter.
|
protected void |
definitionPostProcess(ApiBean.ApiDefinition apiDefinition)
definitionPostProcess.
|
java.util.List<ApiBean> |
extract(org.springframework.context.ApplicationContext applicationContext)
Extract apiBeans from applicationContext.
|
java.util.List<ApiBean> |
extract(org.springframework.context.ApplicationContext applicationContext,
java.util.Map<java.lang.String,java.lang.Object> supportBeans)
extract.
|
protected abstract java.util.Map<java.lang.String,java.lang.Object> |
extractSupportBeans(org.springframework.context.ApplicationContext applicationContext)
Extracts the collection of instances of supported beans.
key is bean name value is bean instance. |
protected java.util.List<ApiBean.ApiDefinition> |
extractSupportDefinitions(java.lang.Object bean,
org.springframework.context.ApplicationContext applicationContext)
Extracts the collection of instances of supported definitions.
|
protected java.util.List<java.lang.reflect.Method> |
extractSupportMethods(java.lang.Object bean,
org.springframework.context.ApplicationContext applicationContext)
Extracts the collection of instances of supported methods.
|
protected ApiBean |
newApi(java.lang.String key,
java.lang.Object value,
java.util.List<ApiBean.ApiDefinition> apiDefinitions)
new api.
|
protected ApiBean.ApiDefinition |
newApiDefinition(java.lang.reflect.Method method,
org.springframework.context.ApplicationContext applicationContext)
new ApiDefinition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclientNamepublic java.util.List<ApiBean> extract(org.springframework.context.ApplicationContext applicationContext)
ApiBeansExtractorextract in interface ApiBeansExtractorapplicationContext - applicationContext@NotNull public java.util.List<ApiBean> extract(org.springframework.context.ApplicationContext applicationContext, java.util.Map<java.lang.String,java.lang.Object> supportBeans)
applicationContext - applicationContextsupportBeans - supportBeansprotected boolean apiPostFilter(ApiBean api)
api - apiprotected void apiPostProcess(ApiBean api)
api - apiprotected ApiBean beanToApi(java.lang.String key, java.lang.Object value, org.springframework.context.ApplicationContext applicationContext)
key - is bean namevalue - is bean instanceapplicationContext - applicationContextprotected ApiBean newApi(java.lang.String key, java.lang.Object value, java.util.List<ApiBean.ApiDefinition> apiDefinitions)
key - bean namevalue - bean instanceapiDefinitions - apiDefinitions.protected java.util.List<ApiBean.ApiDefinition> extractSupportDefinitions(java.lang.Object bean, org.springframework.context.ApplicationContext applicationContext)
bean - bean instance.applicationContext - applicationContext.protected void definitionPostProcess(ApiBean.ApiDefinition apiDefinition)
apiDefinition - apiDefinitionprotected boolean definitionPostFilter(ApiBean.ApiDefinition apiDefinition)
apiDefinition - apiDefinitionprotected ApiBean.ApiDefinition newApiDefinition(java.lang.reflect.Method method, org.springframework.context.ApplicationContext applicationContext)
method - methodapplicationContext - applicationContextprotected java.util.List<java.lang.reflect.Method> extractSupportMethods(java.lang.Object bean,
org.springframework.context.ApplicationContext applicationContext)
bean - bean instance.applicationContext - applicationContext.public void addExtractorProcessor(ExtractorProcessor processor)
processor - processor.protected abstract java.util.Map<java.lang.String,java.lang.Object> extractSupportBeans(org.springframework.context.ApplicationContext applicationContext)
applicationContext - applicationContext.Copyright © 2023 The Apache Software Foundation. All rights reserved.