Examples of IProvisioningAgentProvider


Examples of org.eclipse.equinox.p2.core.IProvisioningAgentProvider

 
  public IProvisioningAgent getProvisioningAgent() {
    if (agent == null) {
      ServiceReference<?> serviceReference = context.getServiceReference(IProvisioningAgentProvider.class.getName());
      if (serviceReference != null) {
        IProvisioningAgentProvider agentProvider = (IProvisioningAgentProvider) context.getService(serviceReference);
        if (agentProvider != null) {
          try {
            agent = agentProvider.createAgent(getStateLocation().toFile().toURI());
          } catch (ProvisionException e) {
            getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e));
          } catch (IllegalStateException e) {
            getLog().log(new Status(IStatus.ERROR, PLUGIN_ID, e.getMessage(), e));
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.