Created
November 6, 2011 21:15
-
-
Save matthewromano/1343503 to your computer and use it in GitHub Desktop.
Method to retrieve the P2 Provisioning Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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