public interface Resolver
  • Method Details

    • mapDescriptorToClassLoader

      Creates a classloader from the passed descriptor (dependencies.txt). WARNING: note it is very important to close the descriptor once no more used otherwise you can leak memory.
      Parameters:
      descriptor - the dependencies.txt InputStream.
      Returns:
      the classloader initialized with the resolved dependencies.
    • mapDescriptorToClassLoader

      Alias to load dependencies from a plain list of gav (groupId:artifactId:version).
      Parameters:
      gavs - the dependencies to use to resolve dependencies.
      Returns:
      the collection of file representing the available dependencies.
    • mapDescriptorToClassLoader

      Creates a classloader from the passed classloader configuration and descriptor (dependencies.txt). WARNING: note it is very important to close the descriptor once no more used otherwise you can leak memory.

      The default implementation of this method is unsupported and will always throw UnsupportedOperationException. Implementations that support configurable classloader creation must override this method.

      Parameters:
      descriptor - the dependencies.txt InputStream.
      configuration - the classloader configuration to apply when creating the classloader.
      Returns:
      the classloader initialized with the configuration provided and the resolved dependencies.
      Throws:
      UnsupportedOperationException - if this implementation does not support configurable classloader creation.
    • mapDescriptorToClassLoader

    • resolveFromDescriptor

      Resolves the dependencies from the descriptor passed as an InputStream. IMPORTANT: this is to use when you are sure the file is resolvable if you don't have a fallback. In that last case, prefer the mapDescriptorToClassLoader.
      Parameters:
      descriptor - the dependencies.txt to use to resolve dependencies.
      Returns:
      the collection of file representing the available dependencies.
    • resolveFromDescriptor

      Alias to load dependencies from a plain list of gav (groupId:artifactId:version).
      Parameters:
      gavs - the dependencies to use to resolve dependencies.
      Returns:
      the collection of file representing the available dependencies.