It's all about the answers!

Ask a question

How to get the ProvisionFactory on the server side


EclipseTalk . (32735959) | asked Sep 01 '11, 10:22 p.m.
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,

3 answers



permanent link
EclipseTalk . (32735959) | answered Sep 01 '11, 10:46 p.m.
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

permanent link
David Van Herzele (10121) | answered Sep 02 '11, 6:32 a.m.
Check https://jazz.net/forums/viewtopic.php?t=18901

permanent link
EclipseTalk . (32735959) | answered Sep 02 '11, 7:49 a.m.
Thanks for the prompt reply!

Your answer


Register or to post your answer.