java.lang.Object
com.atlassian.plugin.webresource.impl.discovery.BundleWalker

public class BundleWalker extends Object
Walks the dependency graph of Bundle objects and reduces the graph to an ordered list of their keys, ensuring all upstream dependencies occur before the things depending on them.
  • Constructor Details

    • BundleWalker

      public BundleWalker(Snapshot snapshot)
  • Method Details

    • find

      public Found find(LinkedHashSet<String> included, Set<String> excluded, Predicate<Bundle> conditionsForExcluded, boolean shouldExpandExcludedKeys, Predicate<Bundle> deep, Predicate<Bundle> deepFilter, PredicateFailStrategy deepFilterFailStrategy, Predicate<Bundle> shallowFilter)
      Returns an ordered set of web-resource keys, based on the dependency graph of the included keys, and whether each web-resource discovered meets the conditions specified in the search. Keys will be omitted from the returned set if they appear in the excluded keys. Exclusions take precedence over included keys. In cases where the dependency graph does not dictate an order, keys will appear in the order they were requested (i.e., the order they appear in the included keys).
      Parameters:
      included - unique, ordered web-resource keys to include in the search.
      excluded - unique web-resource keys to omit from the result if found.
      Returns:
      ordered keys of resolved Web Resources.
    • getBundle

      protected Bundle getBundle(String key)