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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<java.lang.String> getDependencies​(java.lang.String code)
      Gets a list of dependencies for the provided code.
      java.util.Collection<java.lang.String> getDependencies​(java.lang.String code, java.util.Set<java.lang.String> seen, boolean addClosureBaseFile)  
      java.util.Collection<java.lang.String> getDependencies​(java.util.Collection<java.lang.String> symbols)
      Gets a list of dependencies for *the provided list of symbols.
      java.util.Collection<java.lang.String> getDependencies​(java.util.Collection<java.lang.String> symbols, java.util.Set<java.lang.String> seen)  
    • Method Detail

      • getDependencies

        java.util.Collection<java.lang.String> getDependencies​(java.lang.String code)
                                                        throws ServiceException
        Gets a list of dependencies for the provided code.
        Throws:
        ServiceException
      • getDependencies

        java.util.Collection<java.lang.String> getDependencies​(java.util.Collection<java.lang.String> symbols)
                                                        throws ServiceException
        Gets a list of dependencies for *the provided list of symbols.
        Throws:
        ServiceException
      • getDependencies

        java.util.Collection<java.lang.String> getDependencies​(java.lang.String code,
                                                               java.util.Set<java.lang.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

        java.util.Collection<java.lang.String> getDependencies​(java.util.Collection<java.lang.String> symbols,
                                                               java.util.Set<java.lang.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