|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
public interface ProxyHandler
Interface that defines logic for handling proxied instances
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
public void initialize(java.lang.Object o)
o - The proxy instance
public boolean isInitialized(java.lang.Object o)
o - The instance to test
public boolean isInitialized(java.lang.Object obj, java.lang.String associationName)
obj - The object to checkassociationName - The association
public boolean isProxy(java.lang.Object o)
o - The object in question
public java.lang.Object unwrapIfProxy(java.lang.Object instance)
instance - The instance to unwrap
Groovy Documentation