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:
Trustin Lee 2013-11-04 19:00:25 +09:00
parent a5f33f4020
commit ebc78dab1d

View File

@ -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) {