Package org.springframework.aop.support
Class ClassFilters
java.lang.Object
org.springframework.aop.support.ClassFilters
Static utility methods for composing
ClassFilters
.- Since:
- 11.11.2003
- Author:
- Rod Johnson, Rob Harrop, Juergen Hoeller, Sam Brannen
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassFilter
intersection
(ClassFilter[] classFilters) Match all classes that all of the given ClassFilters match.static ClassFilter
intersection
(ClassFilter cf1, ClassFilter cf2) Match all classes that both of the given ClassFilters match.static ClassFilter
negate
(ClassFilter classFilter) Return a class filter that represents the logical negation of the specified filter instance.static ClassFilter
union
(ClassFilter[] classFilters) Match all classes that either (or all) of the given ClassFilters matches.static ClassFilter
union
(ClassFilter cf1, ClassFilter cf2) Match all classes that either (or both) of the given ClassFilters matches.
-
Constructor Details
-
ClassFilters
public ClassFilters()
-
-
Method Details
-
union
Match all classes that either (or both) of the given ClassFilters matches.- Parameters:
cf1
- the first ClassFiltercf2
- the second ClassFilter- Returns:
- a distinct ClassFilter that matches all classes that either of the given ClassFilter matches
-
union
Match all classes that either (or all) of the given ClassFilters matches.- Parameters:
classFilters
- the ClassFilters to match- Returns:
- a distinct ClassFilter that matches all classes that either of the given ClassFilter matches
-
intersection
Match all classes that both of the given ClassFilters match.- Parameters:
cf1
- the first ClassFiltercf2
- the second ClassFilter- Returns:
- a distinct ClassFilter that matches all classes that both of the given ClassFilter match
-
intersection
Match all classes that all of the given ClassFilters match.- Parameters:
classFilters
- the ClassFilters to match- Returns:
- a distinct ClassFilter that matches all classes that both of the given ClassFilter match
-
negate
Return a class filter that represents the logical negation of the specified filter instance.- Parameters:
classFilter
- theClassFilter
to negate- Returns:
- a filter that represents the logical negation of the specified filter
- Since:
- 6.1
-