/**
* Execute one hook if is present.
*
* @param ann the annotation
* @param execute the bi consumer
* @param <T> the type
*/
protected <T> void doHookIfPresent(Class<T> ann, BiConsumer<AnnotatedElement, T> execute) {
Class<? extends Annotation> annClass = (Class<? extends Annotation>) ann;
Target target = annClass.getAnnotation(Target.class);
if (isCheckType(target, ElementType.TYPE))
executeHookType(annClass, execute);
if (isCheckType(target, ElementType.METHOD))
executeHookMethods(annClass, execute);
}
AbstractModule.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:vertx-jspare
作者:
评论列表
文章目录