@Override
public List<ConstructorInterceptor> getConstructorInterceptors(Constructor<?> constructor) {
return getInterceptors(
constructor,
annotatedConstructorInterceptorFactories,
AnnotatedConstructorInterceptorFactory.class,
AnnotatedConstructorInterceptorFactory::provide
);
}
java类org.aopalliance.intercept.ConstructorInterceptor的实例源码
AnnotationInterceptionService.java 文件源码
项目:dropwizard-hk2
阅读 20
收藏 0
点赞 0
评论 0
CountedInterceptorFactory.java 文件源码
项目:dropwizard-hk2
阅读 18
收藏 0
点赞 0
评论 0
@Override
public ConstructorInterceptor provide(Constructor<?> constructor, Counted annotation) {
return invocation -> count(constructor, annotation, invocation);
}
ExceptionMeteredInterceptorFactory.java 文件源码
项目:dropwizard-hk2
阅读 22
收藏 0
点赞 0
评论 0
@Override
public ConstructorInterceptor provide(Constructor<?> constructor, ExceptionMetered annotation) {
return invocation -> exceptionMeter(constructor, annotation, invocation);
}
MeteredInterceptorFactory.java 文件源码
项目:dropwizard-hk2
阅读 17
收藏 0
点赞 0
评论 0
@Override
public ConstructorInterceptor provide(Constructor<?> constructor, Metered annotation) {
return invocation -> meter(constructor, invocation);
}
TimedInterceptorFactory.java 文件源码
项目:dropwizard-hk2
阅读 18
收藏 0
点赞 0
评论 0
@Override
public ConstructorInterceptor provide(Constructor<?> constructor, Timed annotation) {
return invocation -> time(constructor, invocation);
}
Always200OK.java 文件源码
项目:sealion
阅读 18
收藏 0
点赞 0
评论 0
@Override
public List<ConstructorInterceptor> getConstructorInterceptors(Constructor<?> constructor) {
return Collections.emptyList();
}
AnnotatedConstructorInterceptorFactory.java 文件源码
项目:dropwizard-hk2
阅读 21
收藏 0
点赞 0
评论 0
ConstructorInterceptor provide(Constructor<?> constructor, T annotation);