public final class GetDeclaredMethodHandle
extends java.lang.Object
implements java.security.PrivilegedAction<java.lang.invoke.MethodHandle>
MethodHandle
or
null
if it does not exist or cannot be accessed.Modifier and Type | Method and Description |
---|---|
static GetDeclaredMethodHandle |
action(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... parameterTypes) |
static GetDeclaredMethodHandle |
andMakeAccessible(java.lang.invoke.MethodHandles.Lookup lookup,
java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.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. |
java.lang.invoke.MethodHandle |
run() |
public static GetDeclaredMethodHandle action(java.lang.invoke.MethodHandles.Lookup lookup, java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
public static GetDeclaredMethodHandle andMakeAccessible(java.lang.invoke.MethodHandles.Lookup lookup, java.lang.Class<?> clazz, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
HibernateValidatorPermission.ACCESS_PRIVATE_MEMBERS
permission against the security manager, if the calling class exposes the handle to clients.public java.lang.invoke.MethodHandle run()
run
in interface java.security.PrivilegedAction<java.lang.invoke.MethodHandle>
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved