Interface Launcher

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
AbstractLauncher, BootstrapProjectLauncher, BuildProjectLauncher

public interface Launcher extends AutoCloseable
Defines the methods provided by a launcher.
  • Method Details

    • resources

      <T extends Resource> Stream<T> resources(Stream<Project> projects, ResourceRequest<T> requested)
      Provide the requested resources from the given projects, using the context from the root project. The launcher must automatically regenerate the root project if Cleanliness was requested.
      Type Parameters:
      T - the requested type
      Parameters:
      projects - the projects
      requested - the request
      Returns:
      the results
    • resources

      default <T extends Resource> Stream<T> resources(ResourceRequest<T> requested)
      Provide the requested resources from the root project, using the context from the root project.
      Type Parameters:
      T - the generic type
      Parameters:
      requested - the requested
      Returns:
      the stream
    • rootProject

      Return the root project.
      Returns:
      the root project
    • regenerateRootProject

      Regenerate root project, see Cleanliness.
      Returns:
      the root project
    • close

      void close()
      Close the launcher. The re-declaration of this method removes the IOException, which is never thrown.
      Specified by:
      close in interface AutoCloseable