public abstract class AbstractInvocationHandler extends Object implements InvocationHandler
Modifier | Constructor and Description |
---|---|
protected |
AbstractInvocationHandler() |
protected |
AbstractInvocationHandler(Supplier<Map> mapSupplier)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
doInvoke(Object proxy,
Method method,
Object[] args)
Default handler for method call.
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
void |
onClose(Closeable closeable) |
@Deprecated protected AbstractInvocationHandler(Supplier<Map> mapSupplier)
mapSupplier
- ConcurrentHashMap::new for thread safe, HashMap::new for single thread, Collections::emptyMap to turn off.protected AbstractInvocationHandler()
public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected abstract Object doInvoke(Object proxy, Method method, Object[] args) throws InvocationTargetException, IllegalAccessException, IllegalStateException, BufferOverflowException, BufferUnderflowException, IllegalArgumentException, ArithmeticException
public void onClose(Closeable closeable)
Copyright © 2022. All rights reserved.