use of org.jdbi.v3.sqlobject.config.ConfiguringAnnotation in project jdbi by jdbi.
the class SqlObjectFactory method forEachConfigurer.
private void forEachConfigurer(AnnotatedElement element, BiConsumer<Configurer, Annotation> consumer) {
Stream.of(element.getAnnotations()).filter(a -> a.annotationType().isAnnotationPresent(ConfiguringAnnotation.class)).forEach(a -> {
ConfiguringAnnotation meta = a.annotationType().getAnnotation(ConfiguringAnnotation.class);
consumer.accept(getConfigurer(meta.value()), a);
});
}
Aggregations