|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.support.proxy.DefaultProxyHandler
public class DefaultProxyHandler
Trivial default implementation that always returns true and the object
Constructor Summary | |
---|---|
DefaultProxyHandler()
|
Method Summary | |
---|---|
void |
initialize(Object o)
Initializes an existing uninitialized proxy instance |
boolean |
isInitialized(Object o)
Returns whether a lazy proxied instance has been initialized |
boolean |
isInitialized(Object obj,
String associationName)
Tests whether an association of the given object has been initialized or not |
boolean |
isProxy(Object o)
Returns true if the specified object is a proxy |
Object |
unwrapIfProxy(Object instance)
Returns the unwrapped proxy instance or the original object if not proxied |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultProxyHandler()
Method Detail |
---|
public boolean isInitialized(Object o)
ProxyHandler
isInitialized
in interface ProxyHandler
o
- The instance to test
public boolean isInitialized(Object obj, String associationName)
ProxyHandler
isInitialized
in interface ProxyHandler
obj
- The object to checkassociationName
- The association
public Object unwrapIfProxy(Object instance)
ProxyHandler
unwrapIfProxy
in interface ProxyHandler
instance
- The instance to unwrap
public boolean isProxy(Object o)
ProxyHandler
isProxy
in interface ProxyHandler
o
- The object in question
public void initialize(Object o)
ProxyHandler
initialize
in interface ProxyHandler
o
- The proxy instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |