mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 02:09:59 +00:00
java: adds JavassistTemplateBuilder.addClassLoader method
This commit is contained in:
parent
0df3da6b10
commit
44be714f65
1 changed files with 4 additions and 0 deletions
|
|
@ -46,6 +46,10 @@ public class JavassistTemplateBuilder extends TemplateBuilder {
|
|||
return instance;
|
||||
}
|
||||
|
||||
public static void addClassLoader(ClassLoader cl) {
|
||||
instance.pool.appendClassPath(new LoaderClassPath(cl));
|
||||
}
|
||||
|
||||
private JavassistTemplateBuilder() {
|
||||
this.pool = ClassPool.getDefault();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue