类 DependencyFilter

  • 所有已实现的接口:
    org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter
    直接已知子类:
    ExcludeFilter, IncludeFilter

    public abstract class DependencyFilter
    extends org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter
    Base class for ArtifactsFilter based on a FilterableDependency list.
    从以下版本开始:
    1.2
    • 构造器概要

      构造器 
      构造器说明
      DependencyFilter​(List<? extends org.springframework.boot.maven.FilterableDependency> dependencies)
      Create a new instance with the list of FilterableDependency instance(s) to use.
    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 
      修饰符和类型方法说明
      protected booleanequals​(org.apache.maven.artifact.Artifact artifact, org.springframework.boot.maven.FilterableDependency dependency)
      Check if the specified Artifact matches the specified FilterableDependency.
      Setfilter​(Set artifacts) 
      protected abstract booleanfilter​(org.apache.maven.artifact.Artifact artifact) 
      protected List<? extends org.springframework.boot.maven.FilterableDependency>getFilters() 
      • 从类继承的方法 org.apache.maven.shared.artifact.filter.collection.AbstractArtifactsFilter

        isArtifactIncluded
    • 构造器详细资料

      • DependencyFilter

        public DependencyFilter​(List<? extends org.springframework.boot.maven.FilterableDependency> dependencies)
        Create a new instance with the list of FilterableDependency instance(s) to use.
        参数:
        dependencies - the source dependencies
    • 方法详细资料

      • filter

        public Set filter​(Set artifacts)
                   throws org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
        抛出:
        org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
      • filter

        protected abstract boolean filter​(org.apache.maven.artifact.Artifact artifact)
      • equals

        protected final boolean equals​(org.apache.maven.artifact.Artifact artifact,
                                       org.springframework.boot.maven.FilterableDependency dependency)
        Check if the specified Artifact matches the specified FilterableDependency. Returns true if it should be excluded
        参数:
        artifact - the Maven Artifact
        dependency - the FilterableDependency
        返回:
        true if the artifact matches the dependency
      • getFilters

        protected final List<? extends org.springframework.boot.maven.FilterableDependency> getFilters()