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,
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
Is it correct to use:
If I do so I'm getting this error in the Team Advisor.
Which required service do I need to add?
How can I create an instance of ServerProviderFactory?
Thanks in advance for your help
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