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(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 ); } } } }
public final ContextualFailureCollector getFailureCollector() { BoundPojoModelPath modelPath = getModelPath(); ContextualFailureCollector failureCollector = mappingHelper.getFailureCollector() .withContext( PojoEventContexts.fromType( modelPath.getRootType().getRawType() ) ); PojoModelPath unboundPath = modelPath.toUnboundPath(); if ( unboundPath != null ) { failureCollector = failureCollector.withContext( PojoEventContexts.fromPath( modelPath.toUnboundPath() ) ); } return failureCollector; } }
@Override public ContextualFailureCollector getFailureCollector() { return failureCollector.withContext( PojoEventContexts.fromType( rawTypeModel ) ); }
@Override public ContextualFailureCollector getFailureCollector() { return rootBuilder.getFailureCollector().withContext( PojoEventContexts.fromPath( PojoModelPath.fromRoot( propertyName ) ) ); }
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 ); } } } }
public final ContextualFailureCollector getFailureCollector() { BoundPojoModelPath modelPath = getModelPath(); ContextualFailureCollector failureCollector = mappingHelper.getFailureCollector() .withContext( PojoEventContexts.fromType( modelPath.getRootType().getRawType() ) ); PojoModelPath unboundPath = modelPath.toUnboundPath(); if ( unboundPath != null ) { failureCollector = failureCollector.withContext( PojoEventContexts.fromPath( modelPath.toUnboundPath() ) ); } return failureCollector; } }
@Override public ContextualFailureCollector getFailureCollector() { return failureCollector.withContext( PojoEventContexts.fromType( rawTypeModel ) ); }
@Override public ContextualFailureCollector getFailureCollector() { return rootBuilder.getFailureCollector().withContext( PojoEventContexts.fromPath( PojoModelPath.fromRoot( propertyName ) ) ); }
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 ); } } } }
failureCollector.withContext( PojoEventContexts.fromType( typeModel ) ) .withContext( PojoEventContexts.fromAnnotation( indexedAnnotation.get() ) ) .add( e );
@Override public void configure(MappingBuildContext buildContext, ConfigurationPropertySource propertySource, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector) { if ( indexName != null ) { try { configurationCollector.mapToIndex( typeModel, indexName ); } catch (RuntimeException e) { buildContext.getFailureCollector() .withContext( PojoEventContexts.fromType( typeModel ) ) .add( e ); } } configurationCollector.collectContributor( typeModel, this ); }
@Override public ContextualFailureCollector getFailureCollector() { return rootBuilder.getFailureCollector().withContext( PojoEventContexts.fromPath( PojoModelPath.fromRoot( propertyName ).value( extractorPath ) ) ); }
failureCollector.withContext( PojoEventContexts.fromType( typeModel ) ) .withContext( PojoEventContexts.fromAnnotation( indexedAnnotation.get() ) ) .add( e );
@Override public void configure(MappingBuildContext buildContext, ConfigurationPropertySource propertySource, MappingConfigurationCollector<PojoTypeMetadataContributor> configurationCollector) { if ( indexName != null ) { try { configurationCollector.mapToIndex( typeModel, indexName ); } catch (RuntimeException e) { buildContext.getFailureCollector() .withContext( PojoEventContexts.fromType( typeModel ) ) .add( e ); } } configurationCollector.collectContributor( typeModel, this ); }
@Override public ContextualFailureCollector getFailureCollector() { return rootBuilder.getFailureCollector().withContext( PojoEventContexts.fromPath( PojoModelPath.fromRoot( propertyName ).value( extractorPath ) ) ); }