org.jboss.shrinkwrap.resolver.api.maven.filter
Class DependencyFilter
java.lang.Object
org.jboss.shrinkwrap.resolver.api.maven.filter.DependencyFilter
- All Implemented Interfaces:
- DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>, MavenResolutionFilter
public class DependencyFilter
- extends Object
- implements MavenResolutionFilter
A filter which accepts only specified dependency. You can omit the version while defining dependency by Maven coordinates.
- Author:
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyFilter
public DependencyFilter(String coordinates)
accept
public boolean accept(MavenDependency element)
- Description copied from interface:
DependencyResolutionFilter
- Accepts element of type E
- Specified by:
accept
in interface DependencyResolutionFilter<MavenResolutionFilter,MavenDependency>
- Specified by:
accept
in interface MavenResolutionFilter
- Parameters:
element
- the element
- Returns:
true
if accepted by the filter, false
otherwise
configure
public MavenResolutionFilter configure(Collection<MavenDependency> dependencies)
- Description copied from interface:
MavenResolutionFilter
- Passed the current
MavenDependencyResolver
configuration to the filter to allow it do some advanced filtering
- Specified by:
configure
in interface MavenResolutionFilter
- Parameters:
dependencies
- The dependencies to be set to the filter
- Returns:
- configured filter
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.