public class DefaultProxyHandler extends java.lang.Object implements ProxyHandler
Constructor and Description |
---|
DefaultProxyHandler() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(java.lang.Object o)
Initializes an existing uninitialized proxy instance.
|
boolean |
isInitialized(java.lang.Object o)
Returns whether a lazy proxied instance has been initialized.
|
boolean |
isInitialized(java.lang.Object obj,
java.lang.String associationName)
Tests whether an association of the given object has been initialized.
|
boolean |
isProxy(java.lang.Object o)
Returns true if the specified object is a proxy.
|
java.lang.Object |
unwrapIfProxy(java.lang.Object instance)
Returns the unwrapped proxy instance or the original object if not proxied.
|
public boolean isInitialized(java.lang.Object o)
ProxyHandler
isInitialized
in interface ProxyHandler
o
- The instance to testpublic boolean isInitialized(java.lang.Object obj, java.lang.String associationName)
ProxyHandler
isInitialized
in interface ProxyHandler
obj
- The object to checkassociationName
- The associationpublic java.lang.Object unwrapIfProxy(java.lang.Object instance)
ProxyHandler
unwrapIfProxy
in interface ProxyHandler
instance
- The instance to unwrappublic boolean isProxy(java.lang.Object o)
ProxyHandler
isProxy
in interface ProxyHandler
o
- The object in questionpublic void initialize(java.lang.Object o)
ProxyHandler
initialize
in interface ProxyHandler
o
- The proxy instance