Skip to content

Instantly share code, notes, and snippets.

@matthewromano
Created November 6, 2011 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewromano/1343503 to your computer and use it in GitHub Desktop.
Save matthewromano/1343503 to your computer and use it in GitHub Desktop.
Method to retrieve the P2 Provisioning Agent
private IProvisioningAgent getProvisioingAgent() {
final IProvisioningAgent agent = (IProvisioningAgent) ServiceHelper.getService(FraudPlugin.bundleContext,
IProvisioningAgent.SERVICE_NAME);
if (agent == null) {
LogHelper.log(new Status(IStatus.ERROR, Activator.PLUGIN_ID,
"No provisioning agent found. This application is not set up for updates."));
}
return agent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment