Interface MavenProjectDependencyProcessor.ProjectDependencyClosure

Enclosing class:
MavenProjectDependencyProcessor

public static interface MavenProjectDependencyProcessor.ProjectDependencyClosure
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<Map.Entry<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>>>
    dependencies(Function<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>> contextIuSupplier)
     
    default Collection<org.apache.maven.project.MavenProject>
    getDependencyProjects(org.apache.maven.project.MavenProject mavenProject, Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> contextIUs)
    Given a maven project returns all other maven projects this one (directly) depends on
    Optional<org.apache.maven.project.MavenProject>
    getProject(org.eclipse.equinox.p2.metadata.IInstallableUnit dependency)
     
    getProjectDependecies(org.apache.maven.project.MavenProject mavenProject)
     
    Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>
    getProjectUnits(org.apache.maven.project.MavenProject mavenProject)
     
    boolean
    isFragment(org.apache.maven.project.MavenProject mavenProject)
    Check if the given unit is a fragment
  • Method Details

    • getProject

      Optional<org.apache.maven.project.MavenProject> getProject(org.eclipse.equinox.p2.metadata.IInstallableUnit dependency)
      Parameters:
      dependency -
      Returns:
      the project that provides the given IInstallableUnit or an empty Optional if no project in this closure provides this unit.
    • getProjectDependecies

      MavenProjectDependencyProcessor.ProjectDependencies getProjectDependecies(org.apache.maven.project.MavenProject mavenProject)
      Parameters:
      mavenProject -
      Returns:
      the dependencies of this project inside the closure
    • getProjectUnits

      Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> getProjectUnits(org.apache.maven.project.MavenProject mavenProject)
    • dependencies

      Stream<Map.Entry<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>>> dependencies(Function<org.apache.maven.project.MavenProject,Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>> contextIuSupplier)
      Returns:
      a stream of all contained maven projects with dependecies
    • getDependencyProjects

      default Collection<org.apache.maven.project.MavenProject> getDependencyProjects(org.apache.maven.project.MavenProject mavenProject, Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> contextIUs)
      Given a maven project returns all other maven projects this one (directly) depends on
      Parameters:
      mavenProject - the maven project for which all direct dependent projects should be collected
      contextIUs - the context IUs to filter dependencies
      Returns:
      the collection of projects this maven project depend on in this closure
    • isFragment

      boolean isFragment(org.apache.maven.project.MavenProject mavenProject)
      Check if the given unit is a fragment
      Parameters:
      installableUnit - the unit to check
      Returns:
      true if this is a fragment, false otherwise