So far, we have seen a lot of useful plugin module types in JIRA. Custom field module type, webwork module type, servlet module type, and so on. But is it possible to add a custom module type in JIRA, one that can then be used to create different modules?
JIRA provides the Module Type plugin module using which we can add new module types dynamically to the plugin framework. In this recipe, we will see how we can add such a new plugin module type and use it to create different modules of that type.
Let us consider the same example Atlassian have used in their online documentation, that is, to create a new dictionary plugin module which can then be used to feed a dictionary service used by other plugins or modules.
Following are the steps to define a new plugin module type:
Add the module type definition in the
atlassin-plugin.xml
file.<module-type key="dictionary" class="com.jtricks...