All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gitee.easyopen.doc.ApiServiceDocCreator Maven / Gradle / Ivy

package com.gitee.easyopen.doc;

import com.gitee.easyopen.annotation.Api;
import com.gitee.easyopen.annotation.ApiService;
import org.springframework.context.ApplicationContext;

/**
 * @author tanghc
 */
public class ApiServiceDocCreator extends AbstractApiDocCreator {

    public ApiServiceDocCreator(String defaultVersion, ApplicationContext applicationContext) {
        super(defaultVersion, applicationContext);
    }

    @Override
    protected Class getServiceAnnotationClass() {
        return ApiService.class;
    }

    @Override
    protected Class getMethodAnnotationClass() {
        return Api.class;
    }

    @Override
    protected com.gitee.easyopen.bean.Api getApi(Api api) {
        return new com.gitee.easyopen.bean.Api(api.name(), api.version());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy