Class Contracts

java.lang.Object
aQute.bnd.osgi.Contracts

class Contracts extends Object
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.
  • Field Details

  • Constructor Details

    • Contracts

      public Contracts(Analyzer analyzer)
  • Method Details

    • getFilter

      Instructions getFilter()
    • clear

      public void clear()
    • collectContracts

      void collectContracts(String from, Parameters pcs)
      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

      boolean isContracted(Descriptors.PackageRef packageRef)
      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

      void addToRequirements(Parameters requirements)
      Called before we print the manifest. Should add any contracts that were actually used to the requirements.
      Parameters:
      requirements -