@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public class JavassistProxyFactory extends java.lang.Object implements org.grails.datastore.mapping.proxyProxyFactory
A proxy factory that uses Javassist to create proxies
Type Params | Return Type | Name and description |
---|---|---|
<K extends Serializable, T> |
protected javassist.util.proxy.MethodHandler |
createMethodHandler(Session session, AssociationQueryExecutor<K, T> executor, K associationKey) |
|
protected javassist.util.proxy.MethodHandler |
createMethodHandler(Session session, java.lang.Class cls, java.lang.Class proxyClass, java.io.Serializable id) |
|
protected java.lang.Object |
createProxiedInstance(Session session, java.lang.Class cls, java.lang.Class proxyClass, java.io.Serializable id) |
<T> |
public T |
createProxy(Session session, java.lang.Class<T> type, java.io.Serializable key) |
<T, K extends Serializable> |
public T |
createProxy(Session session, AssociationQueryExecutor<K, T> executor, K associationKey) |
|
public java.io.Serializable |
getIdentifier(java.lang.Object obj) |
|
public java.lang.Class<?> |
getProxiedClass(java.lang.Object o) |
|
protected java.lang.Class |
getProxyClass(java.lang.Class type) |
|
protected java.lang.Object |
getProxyInstance(Session session, java.lang.Class type, java.io.Serializable id) |
|
protected java.lang.Class[] |
getProxyInterfaces() |
|
public void |
initialize(java.lang.Object o) |
|
public boolean |
isHandled(java.lang.reflect.Method method) |
|
public boolean |
isInitialized(java.lang.Object object) Checks whether a given proxy is initialized |
|
public boolean |
isInitialized(java.lang.Object object, java.lang.String associationName) |
|
public boolean |
isProxy(java.lang.Object object) |
|
public java.lang.Object |
unwrap(java.lang.Object object) Unwraps the given proxy if it is one |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Checks whether a given proxy is initialized
object
- The object to checkUnwraps the given proxy if it is one
object
- The object