Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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()

0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,926

Question asked: Oct 05 '17, 6:05 p.m.

Question was seen: 1,400 times

Last updated: Oct 06 '17, 3:12 a.m.

Confirmation Cancel Confirm