PlugIn Fragment prerequisites
![]() Is there a way to add prerequisites to a fragment.xml file, something like this
<fragment> <prerequisites> <requiredService interface="com.ibm.team.workitem.service.IWorkItemServer"/>
<requiredService interface="com.ibm.team.repository.common.service.IContributorService"/> <requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/> <requiredService interface="com.ibm.team.workitem.common.IWorkItemCommon"/>
<requiredService interface="com.ibm.team.workitem.common.IAuditableCommon"/> <requiredService interface="com.ibm.team.process.service.IProcessServerService"/> </prerequisites>
</fragment> in order to be able to use the the method getService()
|
One answer
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Oct 06 '17, 3:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I have no experience with fragments, but.....
If you carefully study the available examples, you realize that the required services are defined inside the extensionService. You also realize that the prerequisites are defined per extension.
So defining them flat in the fragment will likely not work. You will have to define the complete extension or find some kind of magic that maps it there.
|