JIRA 4.3 : Component Plugin Module
This page last changed on Feb 16, 2011 by shaldane.
IntroductionA component plugin module defines a Java component which will be injected into the component system used by your plugin. Components under Plugins1A component in a Plugins1 plugin will be installed into JIRA's core component manager (PicoContainer). A new component is simple to define as follows: <component key="userService" name="User Service" class="com.atlassian.jira.rpc.soap.UserServiceImpl"> <interface>com.atlassian.jira.rpc.soap.UserService</interface> </component> This example here defines a component implementing UserService that is put into the PicoContainer to inject into any other plugin modules. If you include this component module in your plugin, then your other plugin modules can define a constructor with a UserService parameter and this implementation will be provided to your plugin module automatically. These components allow you to simplify the creation and management of your plugin modules quite a lot. Components under Plugins2A component in a Plugins2 plugin will be installed into the Spring container for your plugin. See the Plugins2 Component Plugin Module documentation for details. |
![]() |
Document generated by Confluence on Mar 27, 2011 18:52 |