Package aQute.bnd.osgi
Class Contracts
java.lang.Object
aQute.bnd.osgi.Contracts
OSGi Contracts are first defined in OSGi Enterprise Release 5.0.0. A Contract
is a namespace to control the versioning of a set of packages.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Analyzer
private final MultiMap<Descriptors.PackageRef,
Contracts.Contract> private final Set<Contracts.Contract>
private Instructions
private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
addToRequirements
(Parameters requirements) Called before we print the manifest.void
clear()
(package private) void
collectContracts
(String from, Parameters pcs) Collect contracts will take a domain and find any declared contracts.(package private) Instructions
(package private) boolean
isContracted
(Descriptors.PackageRef packageRef) Find out if a package is contracted.
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
analyzer
-
contracted
-
overlappingContracts
-
instructions
-
contracts
-
-
Constructor Details
-
Contracts
-
-
Method Details
-
getFilter
Instructions getFilter() -
clear
public void clear() -
collectContracts
Collect contracts will take a domain and find any declared contracts. This happens early so that we have a list of contracts we can later compare the imports against. -
isContracted
Find out if a package is contracted. If there are multiple contracts for a package we remember this so we can generate a single error.- Parameters:
packageRef
-
-
addToRequirements
Called before we print the manifest. Should add any contracts that were actually used to the requirements.- Parameters:
requirements
-
-