View Javadoc

1   package com.atlassian.plugin.webresource;
2   
3   import java.util.LinkedHashSet;
4   
5   interface ResourceDependencyResolver
6   {
7       /**
8        * Returns an ordered set of the super batch resources and its dependencies.
9        * Implementations are expected to use the {@link ResourceBatchingConfiguration} provided.
10       */
11      public LinkedHashSet<String> getSuperBatchDependencies();
12  
13      /**
14       * Returns an ordered set of the given resource and its dependencies. To exclude resource dependencies
15       * in the super batch, pass excludeSuperBatchedResources as true.
16       *
17       * @param moduleKey the complete module key of the web resource to retrieve dependencies for
18       * @param excludeSuperBatchedResources whether or not to exclude resources that are part of the super batch.
19       */
20      public LinkedHashSet<String> getDependencies(String moduleKey, boolean excludeSuperBatchedResources);
21  }