Package dev.equo.solstice.p2
Class P2Session
java.lang.Object
dev.equo.solstice.p2.P2Session
In-memory store of all p2 metadata, especially provides/requires dependency information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceKeeps track of every unit which provides the given capability. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnitById(String id) Returns the unit with the given id.voidpopulateFrom(P2Client client, String url) Adds everyP2Unitfrom the given url into this session.query()Creates a newP2Queryagainst this session.
-
Constructor Details
-
P2Session
public P2Session()
-
-
Method Details
-
populateFrom
Adds everyP2Unitfrom the given url into this session.- Throws:
Exception
-
getUnitById
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. -
query
Creates a newP2Queryagainst this session.
-