Skip to content

Conversation

@otaconix
Copy link

@otaconix otaconix commented Aug 31, 2020

Prior to this commit, annotations annotated with @PropertyMapping that contained
nested annotation attributes would result in instances of TypeMappedAnnotation being used as properties. This usually led to errors due to not being able to convert those to Strings.

This commit makes it so that nested annotations are recursively mapped to properties. This should allow for more complex configuration to be mapped from annotations.

Prior to this commit, annotations annotated with @PropertyMapping that contained
nested annotation attributes would result in instances of TypeMappedAnnotation being used as properties. This usually led to errors due to not being able to convert those to Strings.
This commit makes it so that nested annotations are recursively mapped to properties. This should allow for more complex configuration to be mapped from annotations.
@pivotal-issuemaster
Copy link

@otaconix Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 31, 2020
@pivotal-issuemaster
Copy link

@otaconix Thank you for signing the Contributor License Agreement!

@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 31, 2020
@philwebb philwebb added this to the 2.4.x milestone Aug 31, 2020
@philwebb philwebb self-assigned this Aug 31, 2020
Copy link

@imjmakki imjmakki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool

philwebb pushed a commit that referenced this pull request Oct 28, 2020
Update `AnnotationsPropertySource` so that nested annotations are
supported. Prior to this commit, annotations annotated with
`@PropertyMapping` that contained nested annotation attributes would
result in instances of `TypeMappedAnnotation` being used as properties.
This usually led to errors due to not being able to convert those to
Strings. This commit makes it so that nested annotations are recursively
mapped to properties. This should allow for more complex configuration
to be mapped from annotations.

See gh-23146
philwebb added a commit that referenced this pull request Oct 28, 2020
@philwebb philwebb closed this in 10ab477 Oct 28, 2020
@philwebb
Copy link
Member

Thanks very much for the very comprehensive pull-request. This has now been merged into master and will be in the 2.4 release.

@philwebb philwebb modified the milestones: 2.4.x, 2.4.0-RC1 Oct 28, 2020
@imjmakki
Copy link

great job

Copy link

@imjmakki imjmakki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants