So far, we have seen a lot of useful plugin module types in JIRA; custom field module types, webwork module types, servlet module types, 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 has used in its online documentation, that is, to create a new dictionary plugin module that can then be used to feed a dictionary service used by other plugins or modules. In this recipe, we will be using the Atlassian Sping Scanner, and hence the code will be slightly different.
Following are the steps required to define a new plugin module...