T
- The exact type of the class loader that is matched.public class ClassLoaderHierarchyMatcher<T extends ClassLoader> extends Object implements ElementMatcher<T>
ClassLoader
s in the matched class loaders hierarchy
against a given matcher.ElementMatcher.Junction<S>
Constructor and Description |
---|
ClassLoaderHierarchyMatcher(ElementMatcher<? super ClassLoader> classLoaderMatcher)
Creates a new class loader hierarchy matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(T target)
Matches a target against this element matcher.
|
String |
toString() |
public ClassLoaderHierarchyMatcher(ElementMatcher<? super ClassLoader> classLoaderMatcher)
classLoaderMatcher
- The matcher to apply on each class loader in the hierarchy.public boolean matches(T target)
ElementMatcher
matches
in interface ElementMatcher<T extends ClassLoader>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.Copyright © 2014–2015. All rights reserved.