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 5b65be01da
commit b9d7bc6b4b

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