I would like to use p2 to perform an installation through code, much as the p2 Director does it, but I can't find the API. Could someone please point me to a good place to start looking?
I found a good starting point in the class DirectorApplication, which is part of the plug-in org.eclipse.equinox.p2.director.app.