ftl.rest.client.$$RestClientFactoryImplTemplateftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxmicro-annotation-processor-rest-client Show documentation
Show all versions of rxmicro-annotation-processor-rest-client Show documentation
The RxMicro Annotation Processor internal module that generates REST client components.
The newest version!
<#include "../../common-lib.javaftl">
<#-- -------------------------------------------------------------------------------------------------------- -->
public final class ${IMPL_CLASS_NAME} extends RestClientFactory {
static {
${ENVIRONMENT_CUSTOMIZER_CLASS}.customize();
}
public ${IMPL_CLASS_NAME}() {
<#list REST_CLIENTS as REST_CLIENT>
register(${REST_CLIENT.simpleInterfaceName}.class, () -> createRestClient(
"${REST_CLIENT.configNameSpace}",
${REST_CLIENT.httpClientConfigSimpleClassName}.class,
${REST_CLIENT.simpleInterfaceName}.class,
${REST_CLIENT.targetSimpleClassName}::new)
);
#list>
}
}