Skip to content

Add merged annotation support to @CrossOrigin #877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Add merged annotation support to @CrossOrigin #877

wants to merge 1 commit into from

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.
@Retention(RetentionPolicy.RUNTIME)
@Documented
@CrossOrigin
private @interface CrossOriginMetaAnnotation {
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.

2 participants