Add a getter method for accessing the ClassPool of JavassistTypeParameterMatcherGenerator
.. so that a user can even manipulate the class pool as they wish.
This commit is contained in:
parent
5b65be01da
commit
b9d7bc6b4b
@ -46,6 +46,10 @@ public final class JavassistTypeParameterMatcherGenerator {
|
||||
classPool.appendClassPath(pathname);
|
||||
}
|
||||
|
||||
public static ClassPool classPool() {
|
||||
return classPool;
|
||||
}
|
||||
|
||||
public static TypeParameterMatcher generate(Class<?> type) {
|
||||
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
|
||||
if (classLoader == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user