Package org.jboss.modules.filter
Class ClassFilters
- java.lang.Object
-
- org.jboss.modules.filter.ClassFilters
-
public final class ClassFilters extends java.lang.Object
Static factory methods for class filter types.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassFilter
acceptAll()
Get a filter which always returnstrue
.static ClassFilter
fromResourcePathFilter(PathFilter resourcePathFilter)
Get a class filter which uses a resource path filter to filter classes.static ClassFilter
rejectAll()
Get a filter which always returnsfalse
.
-
-
-
Method Detail
-
acceptAll
public static ClassFilter acceptAll()
Get a filter which always returnstrue
.- Returns:
- the accept-all filter
-
rejectAll
public static ClassFilter rejectAll()
Get a filter which always returnsfalse
.- Returns:
- the reject-all filter
-
fromResourcePathFilter
public static ClassFilter fromResourcePathFilter(PathFilter resourcePathFilter)
Get a class filter which uses a resource path filter to filter classes.- Parameters:
resourcePathFilter
- the resource path filter- Returns:
- the class filter
-
-