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 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:<dependency> <groupId>com.atlassian.activeobjects</groupId> <artifactId>activeobjects...