Interface ResolverHook


  • public interface ResolverHook
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void filterMatches​(org.osgi.resource.Requirement requirement, java.util.List<org.osgi.resource.Capability> candidates)
      Filter matches hook method.
    • Method Detail

      • filterMatches

        void filterMatches​(org.osgi.resource.Requirement requirement,
                           java.util.List<org.osgi.resource.Capability> candidates)
        Filter matches hook method. This method is called during the resolve process for the specified requirement. The collection of candidates match the specified requirement. This method can filter the collection of matching candidates by removing candidates from the collection. Removing a candidate will prevent the resolve process from choosing the removed candidate to satisfy the requirement. Implementing classes must be registered as plugins in bnd.
        Parameters:
        requirement - the requirement to filter candidates for
        candidates - a collection of candidates that match the requirement