Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] List of update sites

It is a service so you can acquire it like any other OSGi service.
The code should look roughly like:

ServiceReference reference = context.getServiceReference(IProvisioningAgent.SERVICE_NAME);
if (reference == null)
return null;
try {
return context.getService(reference);
} finally {
context.ungetService(reference);
}

Where "context" is your BundleContext object available from your bundle activator.


Inactive hide details for Andrey Razumovsky ---03/25/2011 10:34:42 AM---OK, great, now I need to get reference to IProvisioningAndrey Razumovsky ---03/25/2011 10:34:42 AM---OK, great, now I need to get reference to IProvisioningAgent :) How can I do that?


From:

Andrey Razumovsky <razumovsky.andrey@xxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

03/25/2011 10:34 AM

Subject:

Re: [p2-dev] List of update sites

Sent by:

p2-dev-bounces@xxxxxxxxxxx




OK, great, now I need to get reference to IProvisioningAgent :) How can I do that?

2011/3/25 DJ Houghton <DJ_Houghton@xxxxxxxxxx>
    Jacek is correct. You can do a service look-up via the agent.

    IProvisioningAgent#getService(IMetadataRepositoryManager.class.getName());


    Inactive hide details for Jacek Pospychała ---03/25/2011 10:16:55 AM---sorry, I didn't noticed you want to "get", and not set Jacek Pospychała ---03/25/2011 10:16:55 AM---sorry, I didn't noticed you want to "get", and not set repository... :-) Anyway, a bit of goolging p


From:

Jacek Pospychała <jacek.pospychala@xxxxxxxxx>

To:

P2 developer discussions <p2-dev@xxxxxxxxxxx>

Date:

03/25/2011 10:16 AM

Subject:

Re: [p2-dev] List of update sites

Sent by:

p2-dev-bounces@xxxxxxxxxxx



--
Andrey
_______________________________________________
p2-dev mailing list
p2-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/p2-dev


GIF image

GIF image


Back to the top