public class DefaultSerializableProxy extends Object implements SerializableProxy
Provides a simple default serialized representation, that saves the InvocationHandler
state and loads the proxy into
the Thread Context Class Loader.
This class should not be used if a security manager is present that prevents access to the Thread Context Class Loader.
Constructor and Description |
---|
DefaultSerializableProxy() |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getProxyClass()
Get the associated proxy class.
|
protected ClassLoader |
getProxyClassLoader()
Get the proxy class loader.
|
protected Object |
readResolve()
Resolve the serialized proxy to a real instance.
|
void |
setProxyInstance(Object proxy)
Set the proxy instance.
|
public void setProxyInstance(Object proxy)
setProxyInstance
in interface SerializableProxy
proxy
- the proxy instanceprotected Object readResolve() throws ObjectStreamException
ObjectStreamException
- if an error occursprotected Class<?> getProxyClass() throws ClassNotFoundException
ClassNotFoundException
- if the proxy class is not foundprotected ClassLoader getProxyClassLoader()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.