private void processEach(TypeMappingContext mappingContext, PojoRawTypeModel<?> typeModel, Stream<? extends A> annotations) { List<A> annotationList = annotations.collect( Collectors.toList() ); for ( A annotation : annotationList ) { try { doProcess( mappingContext, typeModel, annotation ); } catch (RuntimeException e) { helper.getRootFailureCollector() .withContext( PojoEventContexts.fromType( typeModel ) ) .withContext( PojoEventContexts.fromAnnotation( annotation ) ) .add( e ); } } } }
private void processEach(TypeMappingContext mappingContext, PojoRawTypeModel<?> typeModel, Stream<? extends A> annotations) { List<A> annotationList = annotations.collect( Collectors.toList() ); for ( A annotation : annotationList ) { try { doProcess( mappingContext, typeModel, annotation ); } catch (RuntimeException e) { helper.getRootFailureCollector() .withContext( PojoEventContexts.fromType( typeModel ) ) .withContext( PojoEventContexts.fromAnnotation( annotation ) ) .add( e ); } } } }
.withContext( PojoEventContexts.fromAnnotation( indexedAnnotation.get() ) ) .add( e );
.withContext( PojoEventContexts.fromAnnotation( indexedAnnotation.get() ) ) .add( e );
private void processEach(PropertyMappingContext mappingContext, PojoRawTypeModel<?> typeModel, PojoPropertyModel<?> propertyModel, Stream<? extends A> annotations) { List<A> annotationList = annotations.collect( Collectors.toList() ); for ( A annotation : annotationList ) { try { doProcess( mappingContext, typeModel, propertyModel, annotation ); } catch (RuntimeException e) { helper.getRootFailureCollector() .withContext( PojoEventContexts.fromType( typeModel ) ) .withContext( PojoEventContexts.fromPath( PojoModelPath.fromRoot( propertyModel.getName() ) ) ) .withContext( PojoEventContexts.fromAnnotation( annotation ) ) .add( e ); } } } }
private void processEach(PropertyMappingContext mappingContext, PojoRawTypeModel<?> typeModel, PojoPropertyModel<?> propertyModel, Stream<? extends A> annotations) { List<A> annotationList = annotations.collect( Collectors.toList() ); for ( A annotation : annotationList ) { try { doProcess( mappingContext, typeModel, propertyModel, annotation ); } catch (RuntimeException e) { helper.getRootFailureCollector() .withContext( PojoEventContexts.fromType( typeModel ) ) .withContext( PojoEventContexts.fromPath( PojoModelPath.fromRoot( propertyModel.getName() ) ) ) .withContext( PojoEventContexts.fromAnnotation( annotation ) ) .add( e ); } } } }