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

com.github.yiuman.citrus.support.inject.InjectAnnotationParserHolder Maven / Gradle / Ivy

There is a newer version: 0.15.0
Show newest version
package com.github.yiuman.citrus.support.inject;

import java.lang.annotation.Annotation;

/**
 * 注解解析器持有者
 *
 * @author yiuman
 * @date 2020/7/23
 */
public interface InjectAnnotationParserHolder extends TargetAnnotationInjector {

    /**
     * 获取注解的解析器
     *
     * @param annotationClass 注解类型
     * @param              注解
     * @return 注解解析器
     */
     InjectAnnotationParser getParse(Class annotationClass);

    /**
     * 注册解释器
     *
     * @param parser 注解解析器
     */
    void register(InjectAnnotationParser parser);

    /**
     * 根据注解类型解析返回目标
     *
     * @param annotation 注解
     * @param         注解类型
     * @return 目标信息
     */
     Object parse(A annotation);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy