Skip to content

Conversation

@nithril
Copy link

@nithril nithril commented Sep 20, 2015

Issue: SPR-13468

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.

Issue: SPR-13468

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.
Copy link
Member

Choose a reason for hiding this comment

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

This is a composed annotation, not a meta-annotation.

@CrossOrigin is a meta-annotation in this context.

Copy link
Author

Choose a reason for hiding this comment

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

@crossorigin is a meta-annotation in this context.

This is the meaning of the annotation name. Is CrossOriginSetAsMetaAnnotation better ?

Copy link
Member

Choose a reason for hiding this comment

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

I'm being picky for a reason.... people often confuse "meta-annotation" and "composed annotation" and that makes it difficult to discuss the topic. So I'm a proponent for a ubiquitous language in this context. See the following for details:

https://github.com/spring-projects/spring-framework/wiki/Spring-Annotation-Programming-Model#terminology

With that in mind, something like @ComposedCrossOrigin or @MyCrossOrigin (or something directly related to the use case) would provide more clarity for the intent.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the link!
Do you expect a new commit or as you take the issue on JIRA, are you correcting the issue on your own?

Copy link
Member

Choose a reason for hiding this comment

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

Since I'm handling the JIRA issue now, I'll fix it on my own when I merge the commit.

cheers!

sbrannen added a commit that referenced this pull request Sep 22, 2015
* SPR-13468:
  Support @crossorigin as a merged composed annotation
@sbrannen
Copy link
Member

Merged into master in 0ad59dd.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants