It's all about the answers!

Ask a question

PlugIn Fragment prerequisites


Jorge Eduardo Garza Martinez (1113) | asked Oct 05 '17, 6:05 p.m.

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



permanent link
Ralph Schoon (63.1k33645) | 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.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.