public static class AndroidInterceptors.CleanerInterceptor extends Interceptor
sun.misc.Cleaner.create() -> new java.lang.ref.Cleaner().register()
sun.misc.Cleaner.clean() -> java.lang.ref.Cleaner.Cleanable().clean()
| Constructor | Description |
|---|---|
CleanerInterceptor() |
| Modifier and Type | Method | Description |
|---|---|---|
MethodHandle |
getMethodHandle(String methodName,
MethodType type) |
|
Function<Object,Object> |
handle(MethodSignature methodSignature) |
getMethodRefs, returnDefaultValuepublic Function<Object,Object> handle(MethodSignature methodSignature)
handle in class Interceptorpublic MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException
getMethodHandle in class InterceptorNoSuchMethodExceptionIllegalAccessException