[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [p2-dev] public API now internal?
- From: John Arthorne <arthorne.eclipse@xxxxxxxxx>
- Date: Tue, 9 Mar 2010 14:15:27 -0500
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=c4mQD9XnrLALP/6fecMcd2GKPfN+RhohKLcKrx0sVidtQ4jlYIdrFr78OTIwYaLxS3 z/xJeLJy0bFWreusC34Bic8GTBkLgzi8e1KajLT3KU5qH47w8xRSbWVlmNb7U8QmL9NB 3hACGcXiZOUTO6i1EuJWQ1aI5SacVA5iq2Mhg=
On Tue, Mar 9, 2010 at 1:45 PM, Thomas M Houser <tmhouser@xxxxxxxxxx>
Ok, now I just switched to "eclipse-SDK-I20100305-1011-win32.zip"
as my target. The following APIs that were formerly provisional API
(in 3.5) and were later public API (in 3.6M5, and as recent as "eclipse-SDK-I20100217-1031-win32.zip")
have been made internal:
The operands are no longer part of the p2 engine API. Instead of constructing instances of Operand and passing them to IEngine#perform, you now construct a plan and pass that to the engine instead. The main goal here was to avoid leaking internal implementation details of the engine. For example, the replacement for InstallableUnitOperand looks something like this (install a single IU into a profile):
IEngine engine = ...;
IProvisioningPlan plan = engine.createPlan(profile, context);
engine.perform(plan, phases, monitor);
This one seems to have disappeared altogether
(though it was public API in earlier 3.6 builds ):
There are now factory methods for this rather than concrete classes. See QueryUtil#createIUQuery.