@java.lang.SuppressWarnings({"rawtypes", "unchecked"}) public class JavassistProxyFactory extends java.lang.Object
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> |
T |
createProxy(Session session, java.lang.Class<T> type, java.io.Serializable key) |
<T, K extends Serializable> |
T |
createProxy(Session session, AssociationQueryExecutor<K, T> executor, K associationKey) |
|
java.io.Serializable |
getIdentifier(java.lang.Object obj) |
|
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() |
|
void |
initialize(java.lang.Object o) |
|
boolean |
isInitialized(java.lang.Object object) Checks whether a given proxy is initialized |
|
boolean |
isInitialized(java.lang.Object object, java.lang.String associationName) |
|
boolean |
isProxy(java.lang.Object object) |
|
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, int), java.lang.Object#wait(long), 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