Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can we use Atlassian's @PublicApi and @PublicSpi annotations in our own plugin's API?

Igor Sereda [ALM Works]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2013

Technically, we can, of course.

The question is:

  • would it have unambiguous meaning (no confusion) to the developer who's working with our API,
  • would it be beneficial for the developer (we have both API and SPI, and the same versioning/compatibility contract)
  • would any of the Atlassian tools like checkup go crazy because of that.

Thanks!

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
mlassau_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 18, 2014

If you are producing a plugin that exposes API / SPI of its own, then I think using those annotations would be a useful way to codify the compatibility contract.

would any of the Atlassian tools like checkup go crazy because of that.

We do have an "API compatibilty check" Bamboo build in JIRA that checks that we haven't broken anything in jira-api.jar

... but I don't see how any Atlassian tool would be looking at jars from ecosystem developers, so its hard to imagine it doing any harm.

0 votes
&(*&)#)_*#@@(*)(@*)(*@
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 29, 2013

hi,

i see no benefice... unambiguous meaning is done with proper namming and classe modifier, if you realy want that mark you method , juste create your own annotation :)

best regards,

TAGS
AUG Leaders

Atlassian Community Events