Package dev.equo.solstice.p2
Class P2Session
- java.lang.Object
-
- dev.equo.solstice.p2.P2Session
-
public class P2Session extends java.lang.ObjectIn-memory store of all p2 metadata, especially provides/requires dependency information.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceP2Session.RequirementKeeps track of every unit which provides the given capability.
-
Constructor Summary
Constructors Constructor Description P2Session()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description P2UnitgetUnitById(java.lang.String id)Returns the unit with the given id.voidpopulateFrom(P2Client client, java.lang.String url)Adds everyP2Unitfrom the given url into this session.P2Queryquery()Creates a newP2Queryagainst this session.
-
-
-
Method Detail
-
populateFrom
public void populateFrom(P2Client client, java.lang.String url) throws java.lang.Exception
Adds everyP2Unitfrom the given url into this session.- Throws:
java.lang.Exception
-
getUnitById
public P2Unit getUnitById(java.lang.String id)
Returns the unit with the given id. If there are multiple units with the same id, returns the one with the greatest version number. If there are none, throws an exception.
-
-