class PersistenceInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Persistence
methods are to be used but with slight exceptions or modifications in execution. To be used for
UnsafePersistence.| Modifier and Type | Field and Description |
|---|---|
private static CentralLogger |
LOG
The logger.
|
private Persistence |
persistence
The persistence instance.
|
| Constructor and Description |
|---|
PersistenceInvocationHandler(Persistence persistence)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
The function responsible for invoking and handling the invocation event.
|
private static final CentralLogger LOG
private final Persistence persistence
public PersistenceInvocationHandler(Persistence persistence)
p - The persistence instance to be used as a proxy.public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable