Putting prerequisites in plugin.xml for a component plugin
![]()
I am writing a Java plugin (extension) that provides some common utilities to the other plugins.
Actually, it is neither an advisor nor a participant, but a component instead. The other plugins (advisors and participants) leverage its methods to retrieve some pieces of information and perform some common tasks. I would like this plugin to be able to retrieve also the services that advisors and participants use (IWorkItem server, IRepositoryItemService, ...), but I need to declare their interfaces as prerequistes of the component plugin in the plugin.xml file. Is it possibile or not? So far, I could not find any point in plugin.xml where it is possible to put this piece of xml: <prerequisites> <requiredService interface="com.ibm.team.workitem.service.IWorkItemServer"/> <requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/> </prerequisites> The current content of plugin.xml of the component plugin is: <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="com.ibm.team.repository.common.components"> <component id="com.ibm.team.custom.common" name="[Custom] Common"> </component> </extension> </plugin> I am working with RTC 4.0.6. |
Accepted answer
![]()
Ralph Schoon (61.5k●3●36●43)
| answered Jul 08 '15, 4:26 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please see Rational Team Concert Extensions Workshop Page 63 and 64.
Also see https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ at the end of the post. Luca Martinucci selected this answer as the correct answer
Comments In the provided examples the services are retrieved by advisor and participant plugins.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can not just put the stuff somewhere because it is more convenient. The other plugins don't know anything about the component plugin. All are isolated. You have to put the required services into each plugin that requires them!
|