Package injector
source code
Code relating to interfaces and policies.
To run a program using the injector, the following steps are
typical:
-
Instantiate a policy.Policy, giving it the root interface's URI.
-
Ask the policy object to choose a set of implementations.
-
The policy will try to find a compatible set of implementations
that meet the user's policy and work on the current architecture, using a solve.Solver.
-
The solver looks up feeds in the iface_cache.
-
The policy will fetch any feeds that are missing or out of date.
-
The cached or downloaded XML is parsed into a model using the reader module.
-
Download the selected implementations and zerostore.unpack into the zerostore.
-
Finally, run the program.
The cli module provides the 0launch command-line
interface.