Using Active Objects to store data
Active Objects represent a technology recently used by JIRA to allow per-plugin storage. This gives the plugin developers a real protected database where they can store the data belonging to their plugin and which other plugins won't be able to access. In this recipe, we will see how we can store an address entity in the database using Active Objects.
You can read more about Active Objects at http://java.net/projects/activeobjects/pages/Home.
Getting ready
Create a skeleton plugin using the Atlassian Plugin SDK.
How to do it...
In order to understand it better, let us look at the simple address entity example that we used in the previous recipe. This will also help in an easy comparison with PropertySet
; if desired, follow the ensuing steps to use Active Objects in the plugin:
Include the Active Objects dependency in
pom.xml
. Add the appropriateao
version, which you can find from the Active Objects JAR bundled in your JIRA:<dependency> <groupId...