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, returnDefaultValue
public Function<Object,Object> handle(MethodSignature methodSignature)
handle
in class Interceptor
public MethodHandle getMethodHandle(String methodName, MethodType type) throws NoSuchMethodException, IllegalAccessException
getMethodHandle
in class Interceptor
NoSuchMethodException
IllegalAccessException