Class BundleWalker
java.lang.Object
com.atlassian.plugin.webresource.impl.discovery.BundleWalker
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfind(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.protected Bundle
-
Constructor Details
-
BundleWalker
-
-
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
-