Пример #1
0
  /*
   * (non-Javadoc)
   *
   * @see
   * org.jboss.shrinkwrap.resolver.api.maven.MavenResolutionFilter#accept(org.jboss.shrinkwrap.resolver.api.maven.MavenDependency
   * )
   */
  public boolean accept(MavenDependency element) {
    for (MavenResolutionFilter f : filters) {
      if (f.accept(element) == false) {
        return false;
      }
    }

    return true;
  }
Пример #2
0
 /*
  * (non-Javadoc)
  *
  * @see org.jboss.shrinkwrap.resolver.api.maven.MavenResolutionFilter#configure(java.util.Collection)
  */
 public MavenResolutionFilter configure(Collection<MavenDependency> dependencies) {
   for (MavenResolutionFilter f : filters) {
     f.configure(dependencies);
   }
   return this;
 }