public class GenericProxy extends Object implements InvocationHandler
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericProxy.Builder<T>
Конструирование Proxy
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
finalizeSource |
protected String |
loggerName |
protected List<MethodCallListener> |
methodCallListeners |
protected Map<String,Level> |
methodLogLevel |
protected Object |
source |
| Constructor and Description |
|---|
GenericProxy(Object source) |
| Modifier and Type | Method and Description |
|---|---|
static <T> GenericProxy.Builder<T> |
builder(T conn,
Class... itfs)
Конструирование Proxy объекта
|
protected void |
finalize() |
protected HookArguments |
fireBeginCall(Object proxy,
Method method,
Object[] args) |
protected Object |
fireEndCall(Object proxy,
Method method,
Object[] args,
Object result,
Throwable err) |
String |
getLoggerName() |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected void |
logInvoke(Object proxy,
Method method,
Object[] args) |
void |
setLoggerName(String lgrName) |
protected Object source
protected final List<MethodCallListener> methodCallListeners
protected boolean finalizeSource
protected String loggerName
public GenericProxy(Object source)
public String getLoggerName()
public void setLoggerName(String lgrName)
protected void finalize()
throws Throwable
protected HookArguments fireBeginCall(Object proxy, Method method, Object[] args)
protected Object fireEndCall(Object proxy, Method method, Object[] args, Object result, Throwable err)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic static <T> GenericProxy.Builder<T> builder(T conn, Class... itfs)
T - Интерфейс для которого создается Proxyconn - Исходный объектitfs - Интерфейсы которые реализуютсяCopyright © 2018. All rights reserved.