aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/util/proxy/ProxyFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/util/proxy/ProxyFactory.java')
-rw-r--r--src/main/javassist/util/proxy/ProxyFactory.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/javassist/util/proxy/ProxyFactory.java b/src/main/javassist/util/proxy/ProxyFactory.java
index 7fe72c77..e3d6b65e 100644
--- a/src/main/javassist/util/proxy/ProxyFactory.java
+++ b/src/main/javassist/util/proxy/ProxyFactory.java
@@ -192,7 +192,10 @@ public class ProxyFactory {
}
/**
- * A provider of class loaders.
+ * A provider of class loaders.
+ *
+ * @see #classLoaderProvider
+ * @since 3.4
*/
public static interface ClassLoaderProvider {
/**
@@ -212,6 +215,15 @@ public class ProxyFactory {
* <p>The value of this field can be updated for changing the default
* implementation.
*
+ * <p>Example:
+ * <ul><pre>
+ * ProxyFactory.classLoaderProvider = new ProxyFactory.ClassLoaderProvider() {
+ * public ClassLoader get(ProxyFactory pf) {
+ * return Thread.currentThread().getContextClassLoader();
+ * }
+ * };
+ * </pre></ul>
+ *
* @since 3.4
*/
public static ClassLoaderProvider classLoaderProvider