Interface DependencyResolver
- All Known Implementing Classes:
DefaultDependencyResolver
public interface DependencyResolver
Interface for DependencyResolver to keep in line with
DefaultDependencyResolver, which doesn't
provide an interface. This is so that later on, we can merge back with it.-
Method Summary
Modifier and TypeMethodDescriptiongetDependencies(String code) Gets a list of dependencies for the provided code.getDependencies(String code, Set<String> seen, boolean addClosureBaseFile) getDependencies(Collection<String> symbols) Gets a list of dependencies for *the provided list of symbols.getDependencies(Collection<String> symbols, Set<String> seen)
-
Method Details
-
getDependencies
Gets a list of dependencies for the provided code.- Throws:
ServiceException
-
getDependencies
Gets a list of dependencies for *the provided list of symbols.- Throws:
ServiceException
-
getDependencies
Collection<String> getDependencies(String code, Set<String> seen, boolean addClosureBaseFile) throws ServiceException - Parameters:
code- The raw code to be parsed for requires.seen- The set of already seen symbols.addClosureBaseFile- Indicates whether the closure base file should be added to the dependency list.- Returns:
- A list of filenames for each of the dependencies for the provided code.
- Throws:
ServiceException
-
getDependencies
Collection<String> getDependencies(Collection<String> symbols, Set<String> seen) throws ServiceException - Parameters:
symbols- A list of required symbols.seen- The set of already seen symbols.- Returns:
- A list of filenames for each of the required symbols.
- Throws:
ServiceException
-