diff --git a/rpcnis-common/src/main/java/com/rpcnis/base/RpcOptions.java b/rpcnis-common/src/main/java/com/rpcnis/base/RpcOptions.java index 64d7074..1a386ed 100644 --- a/rpcnis-common/src/main/java/com/rpcnis/base/RpcOptions.java +++ b/rpcnis-common/src/main/java/com/rpcnis/base/RpcOptions.java @@ -8,6 +8,11 @@ public class RpcOptions { */ private int timeoutSeconds = 30; + /** + * Generated pseudoclass for proxies will be registered with this class loader. + */ + private ClassLoader classLoader = RpcOptions.class.getClassLoader(); + public int getTimeoutSeconds() { return timeoutSeconds; } @@ -16,4 +21,12 @@ public void setTimeoutSeconds(int timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } + public ClassLoader getClassLoader() { + return classLoader; + } + + public void setClassLoader(ClassLoader classLoader) { + this.classLoader = classLoader; + } + }