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

How to get the ProvisionFactory on the server side

Hello,
I'm developing a pre-condition operation for scm "Deliver" on the server side. I'm using ChangeSetLinks.findLinks method to get the links. I need to use the class ProvisionFactory on the server side.

On the client side I could do:

ProviderFactory = (ProviderFactory) repository.getClientLibrary(ProviderFactory.class)

However, on the sever Side, I tried
ProviderFactory provider = getService(ProviderFactory.class) but the plugin complains about the missing required service "com.ibm.team.scm.service.providers.ProviderFactory"

Could anyone help me out please?
Thanks,

0 votes



3 answers

Permanent link
Is it correct to use:
ServerProviderFactory provider = getService(ServerProviderFactory.class);


If I do so I'm getting this error in the Team Advisor.

failed to find the required service 'class com.ibm.team.scm.service.internal.utils.ServerProviderFactory'.  Check <prerequisites> in plugin.xml.



Which required service do I need to add?
How can I create an instance of ServerProviderFactory?

Thanks in advance for your help

0 votes


Permanent link
Check https://jazz.net/forums/viewtopic.php?t=18901

0 votes


Permanent link
Thanks for the prompt reply!

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,940

Question asked: Sep 01 '11, 10:22 p.m.

Question was seen: 4,640 times

Last updated: Sep 01 '11, 10:22 p.m.

Confirmation Cancel Confirm