@SuppressWarnings({ "rawtypes", "unchecked" }) public class JavassistProxyFactory extends 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 MethodHandler |
createMethodHandler(Session session, AssociationQueryExecutor<K, T> executor, K associationKey) |
|
protected MethodHandler |
createMethodHandler(Session session, Class cls, Class proxyClass, Serializable id) |
|
protected Object |
createProxiedInstance(Session session, Class cls, Class proxyClass, Serializable id) |
<T> |
public T |
createProxy(Session session, Class<T> type, Serializable key) |
<T, K extends Serializable> |
public T |
createProxy(Session session, AssociationQueryExecutor<K, T> executor, K associationKey) |
|
public Serializable |
getIdentifier(Object obj) |
|
public Class<?> |
getProxiedClass(Object o) |
|
protected Class |
getProxyClass(Class type) |
|
protected Object |
getProxyInstance(Session session, Class type, Serializable id) |
|
protected Class[] |
getProxyInterfaces() |
|
public void |
initialize(Object o) |
|
public boolean |
isHandled(Method method) |
|
public boolean |
isInitialized(Object object)Checks whether a given proxy is initialized |
|
public boolean |
isInitialized(Object object, String associationName) |
|
public boolean |
isProxy(Object object) |
|
public Object |
unwrap(Object object)Unwraps the given proxy if it is one |
Checks whether a given proxy is initialized
object - The object to check