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