public final class GetDeclaredMethodHandle extends Object implements PrivilegedAction<MethodHandle>
MethodHandle
or
null
if it does not exist or cannot be accessed.Modifier and Type | Method and Description |
---|---|
static GetDeclaredMethodHandle |
action(MethodHandles.Lookup lookup,
Class<?> clazz,
String methodName,
Class<?>... parameterTypes) |
static GetDeclaredMethodHandle |
andMakeAccessible(MethodHandles.Lookup lookup,
Class<?> clazz,
String methodName,
Class<?>... parameterTypes)
Before using this method on arbitrary classes, you need to check the
HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager, if the calling class exposes the handle to clients. |
MethodHandle |
run() |
public static GetDeclaredMethodHandle action(MethodHandles.Lookup lookup, Class<?> clazz, String methodName, Class<?>... parameterTypes)
public static GetDeclaredMethodHandle andMakeAccessible(MethodHandles.Lookup lookup, Class<?> clazz, String methodName, Class<?>... parameterTypes)
HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager, if the calling class exposes the handle to clients.public MethodHandle run()
run
in interface PrivilegedAction<MethodHandle>
Copyright © 2021 JBoss by Red Hat. All rights reserved.